mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-30 16:01:49 +00:00
- destroyed stale thinkers after change level failure
https://forum.zdoom.org/viewtopic.php?t=72890
This commit is contained in:
parent
dcfd72c766
commit
a21c388dd6
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue