diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 28a7dfcf6..37f228eb1 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -6036,7 +6036,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckProximity) { current = ref->AproxDistance(mo); - if ((flags & CPXF_CLOSEST) && ((current < closer) || !closer)) + if ((flags & CPXF_CLOSEST) && (current < closer)) { dist = mo; closer = current; //This actor's closer. Set the new standard.