From d39694a33d5c43815110bccc3432e8091b904905 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Mon, 4 Apr 2016 15:51:03 -0500 Subject: [PATCH] Fixed: DoTakeInventory() indicated success when passed an invalid item type --- 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 c09615067..653bac685 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -2112,7 +2112,7 @@ bool DoTakeInventory(AActor *receiver, bool orresult, VM_ARGS) if (itemtype == NULL) { - return true; + return false; } if (!orresult) {