Skip to content

Commit

Permalink
Make the visual thinker statnum assignment check unconditional since …
Browse files Browse the repository at this point in the history
…statnum is no longer a pointer

- This fully completes this revert: ca3b073
  • Loading branch information
MajorCooke authored and RicardoLuis0 committed Jan 10, 2025
1 parent 30ab960 commit 2061cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/g_levellocals.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ struct FLevelLocals
DThinker *CreateThinker(PClass *cls, int statnum = STAT_DEFAULT)
{
DThinker *thinker = static_cast<DThinker*>(cls->CreateNew());
if (statnum && thinker->IsKindOf(RUNTIME_CLASS(DVisualThinker)))
if (thinker->IsKindOf(RUNTIME_CLASS(DVisualThinker)))
{
statnum = STAT_VISUALTHINKER;
}
Expand Down

0 comments on commit 2061cab

Please sign in to comment.