From 2d0b90deb1f2fbbc775b12d56667ce4d072252cb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 1 Dec 2018 22:44:06 +0100 Subject: [PATCH] - fixed: P_Massacre without a class restriction no longer worked. --- src/p_enemy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_enemy.cpp b/src/p_enemy.cpp index 21fd6b1c06..6f8d052864 100644 --- a/src/p_enemy.cpp +++ b/src/p_enemy.cpp @@ -3475,7 +3475,7 @@ int P_Massacre (bool baddies, PClassActor *cls) int killcount = 0; AActor *actor; - TThinkerIterator iterator(cls); + TThinkerIterator iterator(cls? cls : RUNTIME_CLASS(AActor)); while ( (actor = iterator.Next ()) ) {