mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-13 22:42:07 +00:00
Clear VisualThinkerHead on new level
Fixes a crash that could occur if the list couldn't be deleted fast enough when changing levels.
This commit is contained in:
parent
59ad4ebc55
commit
f239025f8e
1 changed files with 1 additions and 0 deletions
|
@ -379,6 +379,7 @@ void FLevelLocals::ClearLevelData(bool fullgc)
|
|||
if (levelMesh) delete levelMesh;
|
||||
aabbTree = nullptr;
|
||||
levelMesh = nullptr;
|
||||
VisualThinkerHead = nullptr;
|
||||
if (screen)
|
||||
screen->SetAABBTree(nullptr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue