godot-wyvernbox-inventory
godot-wyvernbox-inventory copied to clipboard
load_from_array used with load_from_state nulls input array
I'm not sure how/why this is happening.
When using load_state, the array passed to load_from_array will remove all items from the passed array, meaning nothing is loaded.
It was driving me mad until I commented out these lines:
for x in items.duplicate(): remove_item(x)
... and then it worked.