- Fixed crash exiting from the iwad selector.

This commit is contained in:
drfrag 2020-01-13 13:53:19 +01:00
parent 004b48d62f
commit 1fed15efc2
2 changed files with 4 additions and 2 deletions

View file

@ -1010,7 +1010,8 @@ void D_Display ()
void D_ErrorCleanup ()
{
savegamerestore = false;
screen->Unlock ();
if (screen)
screen->Unlock ();
bglobal.RemoveAllBots (true);
D_QuitNetGame ();
if (demorecording || demoplayback)

View file

@ -3151,7 +3151,8 @@ void P_FreeLevelData ()
AActor::ClearTIDHashes();
interpolator.ClearInterpolations(); // [RH] Nothing to interpolate on a fresh level.
Renderer->CleanLevelData();
if (Renderer)
Renderer->CleanLevelData();
FPolyObj::ClearAllSubsectorLinks(); // can't be done as part of the polyobj deletion process.
SN_StopAllSequences ();
DThinker::DestroyAllThinkers ();