diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index 210c0cd5b..807326d78 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -924,8 +924,7 @@ DEFINE_ACTION_FUNCTION(AActor, TakeInventory) PARAM_INT(amount); PARAM_BOOL_DEF(fromdecorate); PARAM_BOOL_DEF(notakeinfinite); - self->TakeInventory(item, amount, fromdecorate, notakeinfinite); - return 0; + ACTION_RETURN_BOOL(self->TakeInventory(item, amount, fromdecorate, notakeinfinite)); } //============================================================================