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 Rachael Alexanderson
commit f5032b149b
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0
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);
}
}