diff --git a/src/g_levellocals.h b/src/g_levellocals.h index af2d6bb28d..5a2b37ca26 100644 --- a/src/g_levellocals.h +++ b/src/g_levellocals.h @@ -427,7 +427,7 @@ public: DThinker *CreateThinker(PClass *cls, int statnum = STAT_DEFAULT) { DThinker *thinker = static_cast(cls->CreateNew()); - if (statnum && thinker->IsKindOf(RUNTIME_CLASS(DVisualThinker))) + if (thinker->IsKindOf(RUNTIME_CLASS(DVisualThinker))) { statnum = STAT_VISUALTHINKER; }