diff --git a/src/p_user.cpp b/src/p_user.cpp index 573a05992..cb8d6b2e6 100644 --- a/src/p_user.cpp +++ b/src/p_user.cpp @@ -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, ¶m, 1, &ret, 1); }