mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 13:00:59 +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();
|
newstate = newstate->GetNextState();
|
||||||
} while (tics == 0);
|
} while (tics == 0);
|
||||||
|
|
||||||
if (GetInfo()->LightAssociations.Size() || newstate->Light > 0)
|
if (GetInfo()->LightAssociations.Size() || (newstate && newstate->Light > 0))
|
||||||
{
|
{
|
||||||
flags8 |= MF8_RECREATELIGHTS;
|
flags8 |= MF8_RECREATELIGHTS;
|
||||||
Level->flags3 |= LEVEL3_LIGHTCREATED;
|
Level->flags3 |= LEVEL3_LIGHTCREATED;
|
||||||
|
|
Loading…
Reference in a new issue