Closed LeeWannacott closed 3 months ago
Moving inventory items results in a crash.
Steps to reproduce: Drag and drop inventory item to a new position inside itself, or a ItemSlot/ other inventory.
Error:
I think you can check for false instead of null now; from patch notes (https://godotengine.org/article/dev-snapshot-godot-4-3-beta-1/):
Breaking changes:
Yeah checking for false would fix the issue in 4.3 beta 1, but I'm afraid it would introduce potential issues in 4.2. So I just went with the is_instance_valid check, which should work in both versions.
false
is_instance_valid
Moving inventory items results in a crash.
Steps to reproduce: Drag and drop inventory item to a new position inside itself, or a ItemSlot/ other inventory.
Error:![image](https://github.com/peter-kish/gloot/assets/49783296/3f07f59c-1a08-4b58-ace5-bc8d283d5c14)
I think you can check for false instead of null now; from patch notes (https://godotengine.org/article/dev-snapshot-godot-4-3-beta-1/):
Breaking changes: