mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fix crash in nullptr access to DFrameBuffer object 'screen' if it is uninitialized
This commit is contained in:
parent
b441d8c399
commit
2c57d5e768
1 changed files with 2 additions and 2 deletions
|
@ -366,8 +366,8 @@ void FLevelLocals::ClearLevelData()
|
|||
localEventManager->Shutdown();
|
||||
if (aabbTree) delete aabbTree;
|
||||
aabbTree = nullptr;
|
||||
screen->SetAABBTree(nullptr);
|
||||
|
||||
if (screen)
|
||||
screen->SetAABBTree(nullptr);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue