- fixed script call in PickNewWeapon.

This commit is contained in:
Christoph Oelckers 2018-12-01 23:36:48 +01:00 committed by drfrag
parent 53c1614a51
commit ff9eaed1ba

View file

@ -938,9 +938,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);
}