mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-21 11:31:41 +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;
|
NextThinker = NULL;
|
||||||
PrevThinker = 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)
|
if (bSerialOverride)
|
||||||
{ // The serializer will insert us into the right list
|
{ // The serializer will insert us into the right list
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue