- fixed script call in PickNewWeapon.

This commit is contained in:
Christoph Oelckers 2018-12-01 23:36:48 +01:00
parent 2d0b90deb1
commit 117537339d

View file

@ -951,9 +951,9 @@ void APlayerPawn::PostBeginPlay()
AInventory *APlayerPawn::PickNewWeapon(PClassActor *ammotype)
{
AInventory *best = nullptr;
IFVM(PlayerPawn, DropWeapon)
IFVM(PlayerPawn, PickNewWeapon)
{
VMValue param = player->mo;
VMValue param[] = { player->mo, ammotype };
VMReturn ret((void**)&best);
VMCall(func, &param, 1, &ret, 1);
}