mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-23 20:32:51 +00:00
- fixed: The script wrapper for AActor::TakeInventory erroneously called RemoveInventory, not TakeInventory.
This commit is contained in:
parent
7adc34932f
commit
23a7fd40aa
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue