From 117537339dc5561bf3f97bc026ca3bd0b9c968df Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 1 Dec 2018 23:36:48 +0100 Subject: [PATCH] - fixed script call in PickNewWeapon. --- src/p_user.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }