Exported Array Not Reseting

Godot Version

4.3.stable.mono

Question

Hey folks, I have an exported array that keeps track of item types for the inventory. When an item is picked up the interact system looks through that items type array to make sure the item exists.

I made some changes to an item type and was testing them out, but the data on the picked up item would never change. I reset the exported array and I was still able to pick up the item type even though no item types existed and an error condition should have been reached.

It turns out that the exported array wasn’t being reset. I deleted the scene that contains the interact system from the player scene, re-instantiated it and that worked. I really don’t understand how this problem could occur. Am I missing something? Is they structure of my scenes incorrect? It seems to me like this is unexpected behavior and shouldn’t happen, but I’m not sure. Has anyone else experienced anything similar?