From f2551dceda96d4fc3f73b3c353fbbb9baa54264a Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Wed, 24 Dec 2014 17:49:58 -0600 Subject: [PATCH] - Corrected the species checking. --- src/thingdef/thingdef_codeptr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index c5e0b860a..50969ce85 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -5034,8 +5034,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetSpeed) static bool DoCheckSpecies(AActor *mo, FName species, bool exclude) { - FName spec = mo->Species; - return (!(species) || !(stricmp(species, "")) || (species && ((exclude) ? (spec != species) : (spec == species)))); + return (!(species) || mo->Species == NAME_None || (species && ((exclude) ? (mo->Species != species) : (mo->Species == species)))); } static bool DoCheckFilter(AActor *mo, const PClass *filter, bool exclude)