mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-02 00:43:29 +00:00
- fixed another crash with stored commands on startup
Example: +map CCMD in command line options
This commit is contained in:
parent
b07ff3f504
commit
c2a78bbd21
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue