Fixed A_JumpIfNoAmmo not working.

This commit is contained in:
Major Cooke 2018-12-01 20:27:04 -06:00 committed by Christoph Oelckers
parent a291ed21fe
commit 49f2a38799

View file

@ -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;
}