mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 12:30:32 +00:00
- fixed script call in PickNewWeapon.
This commit is contained in:
parent
53c1614a51
commit
ff9eaed1ba
1 changed files with 2 additions and 2 deletions
|
@ -938,9 +938,9 @@ void APlayerPawn::PostBeginPlay()
|
||||||
AInventory *APlayerPawn::PickNewWeapon(PClassActor *ammotype)
|
AInventory *APlayerPawn::PickNewWeapon(PClassActor *ammotype)
|
||||||
{
|
{
|
||||||
AInventory *best = nullptr;
|
AInventory *best = nullptr;
|
||||||
IFVM(PlayerPawn, DropWeapon)
|
IFVM(PlayerPawn, PickNewWeapon)
|
||||||
{
|
{
|
||||||
VMValue param = player->mo;
|
VMValue param[] = { player->mo, ammotype };
|
||||||
VMReturn ret((void**)&best);
|
VMReturn ret((void**)&best);
|
||||||
VMCall(func, ¶m, 1, &ret, 1);
|
VMCall(func, ¶m, 1, &ret, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue