From 9ee34254c86380b13256268ce6acc89d39210b63 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Fri, 21 Oct 2016 19:26:05 -0400 Subject: [PATCH] - fixed: Crashing when using the "restart" ccmd --- src/r_data/colormaps.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/r_data/colormaps.cpp b/src/r_data/colormaps.cpp index d64327e796..659470a234 100644 --- a/src/r_data/colormaps.cpp +++ b/src/r_data/colormaps.cpp @@ -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(); }