I’m working on a C++ driven inventory system, and i’ve made a class called pickup. The inventory is represented like so:
TArray<APickup*> MyInventory;
I can pick up items and they get added to the inventory array, but after around a minute they mysteriously dissapear from the array. Does anyone know why this might be happening?
I have a method that removes items from the inventory, but I commented this out just to ensure that wasn’t the problem, and the problem is still occuring even after commenting it out.