mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-20 11:03:08 +00:00
- fixed crash with stored commands on startup
Example: +map CCMD in command line options
This commit is contained in:
parent
c1a4158ab0
commit
16ee57817d
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue