mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- Add missing null pointer check.
This commit is contained in:
parent
23477342c3
commit
d84b44cbd1
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ bool AActor::SetState (FState *newstate, bool nofunction)
|
|||
newstate = newstate->GetNextState();
|
||||
} while (tics == 0);
|
||||
|
||||
if (GetInfo()->LightAssociations.Size() || newstate->Light > 0)
|
||||
if (GetInfo()->LightAssociations.Size() || (newstate && newstate->Light > 0))
|
||||
{
|
||||
flags8 |= MF8_RECREATELIGHTS;
|
||||
Level->flags3 |= LEVEL3_LIGHTCREATED;
|
||||
|
|
Loading…
Reference in a new issue