From bfaa09c429c50e3423bddc398affa9446abe7088 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 23 Dec 2017 15:48:28 +0200 Subject: [PATCH] Fixed crash after restart CCMD --- src/am_map.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/am_map.cpp b/src/am_map.cpp index 540461441..2d80b59a0 100644 --- a/src/am_map.cpp +++ b/src/am_map.cpp @@ -109,7 +109,10 @@ CUSTOM_CVAR (Int, am_emptyspacemargin, 0, CVAR_ARCHIVE) self = 90; } - AM_NewResolution(); + if (nullptr != StatusBar) + { + AM_NewResolution(); + } } //=============================================================================