From c2a78bbd21041a9b9825ef1b2f1e0b5e10bcb7b9 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 13 Jan 2019 14:50:39 +0200 Subject: [PATCH] - fixed another crash with stored commands on startup Example: +map CCMD in command line options --- src/dthinker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dthinker.cpp b/src/dthinker.cpp index 1744834674..cb221898e9 100644 --- a/src/dthinker.cpp +++ b/src/dthinker.cpp @@ -367,7 +367,7 @@ void DThinker::ChangeStatNum (int statnum) { FThinkerList *list; - Level = currentSession->Levelinfo[0]; // fixme later. + Level = currentSession == nullptr ? nullptr : currentSession->Levelinfo[0]; // fixme later. if ((unsigned)statnum > MAX_STATNUM) {