Skip to content

Commit

Permalink
Clear VisualThinkerHead on new level
Browse files Browse the repository at this point in the history
Fixes a crash that could occur if the list couldn't be deleted fast enough when changing levels.
  • Loading branch information
Boondorl committed Jan 22, 2025
1 parent 59ad4eb commit a2378dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/p_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ void FLevelLocals::ClearLevelData(bool fullgc)
if (levelMesh) delete levelMesh;
aabbTree = nullptr;
levelMesh = nullptr;
VisualThinkerHead = nullptr;
if (screen)
screen->SetAABBTree(nullptr);
}
Expand Down

0 comments on commit a2378dd

Please sign in to comment.