From 2061caba18f1ce5d1bbfa41b096ab46e80a27b93 Mon Sep 17 00:00:00 2001 From: Major Cooke Date: Fri, 10 Jan 2025 13:55:16 -0600 Subject: [PATCH] Make the visual thinker statnum assignment check unconditional since statnum is no longer a pointer - This fully completes this revert: https://github.com/ZDoom/gzdoom/commit/ca3b0737ea3cc2b11c7e1e2670dd56073cb4a096 --- src/g_levellocals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }