godot-wyvernbox-inventory icon indicating copy to clipboard operation
godot-wyvernbox-inventory copied to clipboard

load_from_array used with load_from_state nulls input array

Open Mazianni opened this issue 1 year ago • 1 comments

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.

Mazianni avatar Aug 10 '23 04:08 Mazianni