Skip to content

Commit

Permalink
- fix crash in nullptr access to DFrameBuffer object 'screen' if it i…
Browse files Browse the repository at this point in the history
…s uninitialized
  • Loading branch information
madame-rachelle committed Jun 14, 2020
1 parent b441d8c commit 2c57d5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/p_setup.cpp
Expand Up @@ -366,8 +366,8 @@ void FLevelLocals::ClearLevelData()
localEventManager->Shutdown();
if (aabbTree) delete aabbTree;
aabbTree = nullptr;
screen->SetAABBTree(nullptr);

if (screen)
screen->SetAABBTree(nullptr);
}

//==========================================================================
Expand Down

0 comments on commit 2c57d5e

Please sign in to comment.