diff --git a/src/g_levellocals.h b/src/g_levellocals.h index af2d6bb28d0..5a2b37ca267 100644 --- a/src/g_levellocals.h +++ b/src/g_levellocals.h @@ -427,7 +427,7 @@ struct FLevelLocals 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; }