Hey there.
I am having a strange behavior with a plugin I created. The plugin uses serialization to store some information. When i now load a saved game, the serialize function gets called, the values gets loaded, everything fine. But after that, the plugin destructor is called. But then, the plugins methods still get called. I wonder why that happens, since in the destructor i delete some stuff the plugin needs to work properly.
Are there maybe two objects alive at the same time? I am creating the plugin object in the game.script file as a global.
Sincerly,
Spellbreaker