Make the visual thinker statnum assignment check unconditional since statnum is no longer a pointer

- This fully completes this revert: ca3b0737ea
This commit is contained in:
Major Cooke 2025-01-10 13:55:16 -06:00 committed by Ricardo Luís Vaz Silva
parent 30ab960955
commit 2061caba18

View file

@ -427,7 +427,7 @@ public:
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;
}