From 41b4df71c26bb9e0287519042685de15cc863bc3 Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Wed, 22 Jul 2015 17:12:42 -0500 Subject: [PATCH] Use IsKindOf instead of MF_SPECIAL to check for an inventory item. --- src/thingdef/thingdef_codeptr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index d124a507de..570557be8b 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -5079,7 +5079,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusGive) } } - bool itemPass = !!((flags & RGF_ITEMS) && thing->flags & MF_SPECIAL); + bool itemPass = !!((flags & RGF_ITEMS) && thing->IsKindOf(RUNTIME_CLASS(AInventory))); bool missilePass = !!((flags & RGF_MISSILES) && thing->flags & MF_MISSILE); if (selfPass || monsterPass || corpsePass || killedPass || itemPass || objectPass || missilePass || playerPass || voodooPass)