Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loss of items through nested containers #196

Open
Ricorei opened this issue Sep 8, 2021 · 0 comments
Open

Loss of items through nested containers #196

Ricorei opened this issue Sep 8, 2021 · 0 comments
Labels

Comments

@Ricorei
Copy link

Ricorei commented Sep 8, 2021

If I open a container and try to drag&drop it inside itself, there is an error message preventing such.
If I open a container, then open a container inside it. I can drag&drop the container in the nested one, they both lock and disappear once I close them.

Open A -> Drag&Drop A inside A -> Error Message -> Good.
Open A -> Open B that is inside A -> Drag&Drop A inside B -> Goes bad, really bad.

I've no clue where the items are now, destroyed? Locked in memory? No idea.
Update: The items are destroyed. Nowhere seen in totalRP3.lua where inventory is stashed.

Solution proposed: It should test recursively if a container adds itself into itself or nested containers.

This is a pretty nasty bug because it can happen easily.

@Solanya Solanya added the bug label Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants