- destroyed stale thinkers after change level failure

https://forum.zdoom.org/viewtopic.php?t=72890
This commit is contained in:
alexey.lysiuk 2021-08-06 15:10:21 +03:00
parent dcfd72c766
commit a21c388dd6

View file

@ -378,6 +378,10 @@ void G_NewInit ()
if (primaryLevel->FraggleScriptThinker) primaryLevel->FraggleScriptThinker->Destroy();
primaryLevel->FraggleScriptThinker = nullptr;
// Destroy thinkers that may remain after change level failure
// Usually, the list contains just a sentinel when such error occurred
primaryLevel->Thinkers.DestroyThinkersInList(STAT_TRAVELLING);
G_ClearSnapshots ();
netgame = false;
multiplayer = multiplayernext;