Duplicated inventory

Hi,

Kindly, I was able to use the Save system of Opsive successfully, and it saves the inventory when the App ends, and load it when the App begins.
But, everytime I End and Start the application, the inventory is duplicated.
Ex: if the player has 1 Pistol, 1 Riffle, 100 bullets, the next start it will be 2 spots one for each pistol, 2 spots each for a rifle, and 2 spots each has 100 bullets.
Third time, will be 3 spots for each weapon…etc.
What would be the reason for that?
Should I call a method to clear the inventory panel, before deserializing the saved inventory and displaying it into a be panel.

Thanks
 
The InventorySaver component has a "Additive" option. Perhaps you have it ticked on? If so try to turn that option off
What it does is load the save data and add it to the existing contents.
That would explain why you always get more items everytime you load
 
Top