- fixed: The script wrapper for AActor::TakeInventory erroneously called RemoveInventory, not TakeInventory.

This commit is contained in:
Christoph Oelckers 2017-01-20 20:04:57 +01:00
parent 7adc34932f
commit 23a7fd40aa

View file

@ -920,11 +920,11 @@ bool AActor::TakeInventory(PClassActor *itemclass, int amount, bool fromdecorate
DEFINE_ACTION_FUNCTION(AActor, TakeInventory) DEFINE_ACTION_FUNCTION(AActor, TakeInventory)
{ {
PARAM_SELF_PROLOGUE(AActor); PARAM_SELF_PROLOGUE(AActor);
PARAM_OBJECT_NOT_NULL(item, AInventory); PARAM_CLASS_NOT_NULL(item, AInventory);
PARAM_INT(amount); PARAM_INT(amount);
PARAM_BOOL_DEF(fromdecorate); PARAM_BOOL_DEF(fromdecorate);
PARAM_BOOL_DEF(notakeinfinite); PARAM_BOOL_DEF(notakeinfinite);
self->RemoveInventory(item); self->TakeInventory(item, amount, fromdecorate, notakeinfinite);
return 0; return 0;
} }