Skip to content

Commit

Permalink
- fixed crash with stored commands on startup
Browse files Browse the repository at this point in the history
Example: +map CCMD in command line options
  • Loading branch information
alexey-lysiuk committed Jan 13, 2019
1 parent c1a4158 commit 16ee578
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dthinker.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 16ee578

Please sign in to comment.