Added missing return values in VM calls

These are not supported by the JIT and must always be passed.
This commit is contained in:
Boondorl 2025-03-19 13:57:26 -04:00 committed by Ricardo Luís Vaz Silva
commit 43031375f4
8 changed files with 22 additions and 11 deletions

View file

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