- fixed crash with stored commands on startup

Example: +map CCMD in command line options
This commit is contained in:
alexey.lysiuk 2019-01-13 10:34:17 +02:00
parent c1a4158ab0
commit 16ee57817d

View file

@ -242,7 +242,11 @@ DThinker::DThinker (int statnum) throw()
{
NextThinker = NULL;
PrevThinker = NULL;
Level = bSerialOverride? nullptr : currentSession->Levelinfo[0]; // do this properly later.
Level = bSerialOverride
? nullptr
: currentSession == nullptr
? nullptr
: currentSession->Levelinfo[0]; // do this properly later.
if (bSerialOverride)
{ // The serializer will insert us into the right list
return;