- 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

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();
}