- fixed wrong state being checked for dynamic light updating.

This commit is contained in:
Christoph Oelckers 2021-10-03 15:44:42 +02:00
parent b4d03501af
commit 6bf487dac3
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ bool AActor::SetState (FState *newstate, bool nofunction)
newstate = newstate->GetNextState();
} while (tics == 0);
if (GetInfo()->LightAssociations.Size() || (newstate && newstate->Light > 0))
if (GetInfo()->LightAssociations.Size() || (state && state->Light > 0))
{
flags8 |= MF8_RECREATELIGHTS;
Level->flags3 |= LEVEL3_LIGHTCREATED;