mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- fixed script call in PickNewWeapon.
This commit is contained in:
parent
2d0b90deb1
commit
117537339d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue