- fixed: Crashing when using the "restart" ccmd

This commit is contained in:
Rachael Alexanderson 2016-10-21 19:26:05 -04:00
parent f178043b81
commit 9ee34254c8
1 changed files with 5 additions and 1 deletions

View File

@ -457,7 +457,11 @@ void R_DeinitColormaps ()
SpecialColormaps.Clear();
fakecmaps.Clear();
delete[] realcolormaps.Maps;
delete[] realfbcolormaps.Maps;
if (realfbcolormaps.Maps)
{
delete[] realfbcolormaps.Maps;
realfbcolormaps.Maps = nullptr;
}
FreeSpecialLights();
}