mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- delete the FraggleScript thinker in G_NewInit.
If this isn't done it can later cause problems when being taken down by GC
This commit is contained in:
parent
92d630eb45
commit
da4e791a3f
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,8 @@
|
||||||
#include "i_time.h"
|
#include "i_time.h"
|
||||||
#include "p_maputl.h"
|
#include "p_maputl.h"
|
||||||
#include "s_music.h"
|
#include "s_music.h"
|
||||||
|
#include "fragglescript/t_script.h"
|
||||||
|
|
||||||
#include "texturemanager.h"
|
#include "texturemanager.h"
|
||||||
|
|
||||||
void STAT_StartNewGame(const char *lev);
|
void STAT_StartNewGame(const char *lev);
|
||||||
|
@ -373,6 +375,8 @@ void G_NewInit ()
|
||||||
pawn->flags |= MF_NOSECTOR | MF_NOBLOCKMAP;
|
pawn->flags |= MF_NOSECTOR | MF_NOBLOCKMAP;
|
||||||
pawn->Destroy();
|
pawn->Destroy();
|
||||||
}
|
}
|
||||||
|
if (primaryLevel->FraggleScriptThinker) primaryLevel->FraggleScriptThinker->Destroy();
|
||||||
|
primaryLevel->FraggleScriptThinker = nullptr;
|
||||||
|
|
||||||
G_ClearSnapshots ();
|
G_ClearSnapshots ();
|
||||||
netgame = false;
|
netgame = false;
|
||||||
|
|
Loading…
Reference in a new issue