mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-17 01:31:25 +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();
|
localEventManager->Shutdown();
|
||||||
if (aabbTree) delete aabbTree;
|
if (aabbTree) delete aabbTree;
|
||||||
aabbTree = nullptr;
|
aabbTree = nullptr;
|
||||||
screen->SetAABBTree(nullptr);
|
if (screen)
|
||||||
|
screen->SetAABBTree(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
Loading…
Reference in a new issue