Skip to content

Commit

Permalink
The fallback path in DepleteAmmo was calling the wrong function
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Feb 12, 2018
1 parent e566cb9 commit 80a0d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/g_inventory/a_weapons.cpp
Expand Up @@ -231,7 +231,7 @@ bool AWeapon::CheckAmmo(int fireMode, bool autoSwitch, bool requireAmmo, int amm
VMCall(func, params, 5, &ret, 1);
return !!retval;
}
return CheckAmmo(fireMode, autoSwitch, requireAmmo, ammocount);
return DoCheckAmmo(fireMode, autoSwitch, requireAmmo, ammocount);
}

bool AWeapon::DoCheckAmmo (int fireMode, bool autoSwitch, bool requireAmmo, int ammocount)
Expand Down

0 comments on commit 80a0d15

Please sign in to comment.