mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Fixed A_JumpIfNoAmmo not working.
This commit is contained in:
parent
a291ed21fe
commit
49f2a38799
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class StateProvider : Inventory
|
|||
action state A_JumpIfNoAmmo(statelabel label)
|
||||
{
|
||||
if (stateinfo == null || stateinfo.mStateType != STATE_Psprite || player == null || player.ReadyWeapon == null ||
|
||||
!player.ReadyWeapon.CheckAmmo(player.ReadyWeapon.bAltFire, false, true))
|
||||
player.ReadyWeapon.CheckAmmo(player.ReadyWeapon.bAltFire, false, true))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue