- fixed another crash with stored commands on startup

Example: +map CCMD in command line options
This commit is contained in:
alexey.lysiuk 2019-01-13 14:50:39 +02:00
parent b07ff3f504
commit c2a78bbd21

View file

@ -367,7 +367,7 @@ void DThinker::ChangeStatNum (int statnum)
{ {
FThinkerList *list; FThinkerList *list;
Level = currentSession->Levelinfo[0]; // fixme later. Level = currentSession == nullptr ? nullptr : currentSession->Levelinfo[0]; // fixme later.
if ((unsigned)statnum > MAX_STATNUM) if ((unsigned)statnum > MAX_STATNUM)
{ {