From 80a0d15bc7f5bb7521bd30d3196e7caffd74e767 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 12 Feb 2018 21:06:38 +0100 Subject: [PATCH] The fallback path in DepleteAmmo was calling the wrong function --- src/g_inventory/a_weapons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_inventory/a_weapons.cpp b/src/g_inventory/a_weapons.cpp index a0458ce3e..e0d98529b 100644 --- a/src/g_inventory/a_weapons.cpp +++ b/src/g_inventory/a_weapons.cpp @@ -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)