Fixed returning of value from TakeInventory() function

Issuing take CCMD no longer causes assertion failure at src/scripting/vm/vmexec.h:662
assert(numret == C && "Number of parameters returned differs from what was expected by the caller")
This commit is contained in:
alexey.lysiuk 2017-01-22 13:51:22 +02:00
parent 89d9a43b68
commit 935d49d75f
1 changed files with 1 additions and 2 deletions

View File

@ -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));
}
//============================================================================