Added missing return values in VM calls
These are not supported by the JIT and must always be passed.
This commit is contained in:
parent
5730719182
commit
f5032b149b
8 changed files with 22 additions and 11 deletions
|
|
@ -218,8 +218,10 @@ static void TakeStrifeItem (player_t *player, PClassActor *itemtype, int amount)
|
|||
|
||||
IFVM(Actor, TakeInventory)
|
||||
{
|
||||
int taken = false;
|
||||
VMValue params[] = { player->mo, itemtype, amount, false, false };
|
||||
VMCall(func, params, 5, nullptr, 0);
|
||||
VMReturn rets[] = { &taken };
|
||||
VMCall(func, params, 5, rets, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue