by Nash » Fri Aug 18, 2017 5:06 am
I have a STAT_INFO thinker made using new(). When I call Destroy() on it, it appears to be destroyed (the OnDestroy() method does happen, as far as I can tell), but upon inspecting the saved game, the object reference stays inside the map's saved game. They will pile up as they keep being new()'d and Destroy()'d.
EDIT: Changing it to STAT_STATIC will correctly delete the object from the saved game after a Destroy()... so I'm not sure if this is a bug or if that's how the engine works?
I have a STAT_INFO thinker made using new(). When I call Destroy() on it, it appears to be destroyed (the OnDestroy() method does happen, as far as I can tell), but upon inspecting the saved game, the object reference stays inside the map's saved game. They will pile up as they keep being new()'d and Destroy()'d.
EDIT: Changing it to STAT_STATIC will correctly delete the object from the saved game after a Destroy()... so I'm not sure if this is a bug or if that's how the engine works?