summaryrefslogtreecommitdiff
path: root/src/game/bg_misc.c
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2020-03-29 14:45:05 +0100
committerIronClawTrem <louie.nutman@gmail.com>2020-03-29 14:45:05 +0100
commit4d46255e2317a9febdf36368496fa958056883e2 (patch)
treefba0c60b70c5616e7055ac142cdd7d22687fdc90 /src/game/bg_misc.c
parent0092faa58e55ee8fd29e2887573bffbb8c5d7faa (diff)
Fix compiler warnings
Mostly a metric ton of unused variables
Diffstat (limited to 'src/game/bg_misc.c')
-rw-r--r--src/game/bg_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c
index fd50509..cb41601 100644
--- a/src/game/bg_misc.c
+++ b/src/game/bg_misc.c
@@ -4964,7 +4964,7 @@ Check if a weapon has full ammo
*/
qboolean BG_WeaponIsFull( weapon_t weapon, int stats[ ], int ammo, int clips )
{
- int maxAmmo, maxClips;
+ int maxAmmo = 0, maxClips = 0;
BG_FindAmmoForWeapon( weapon, &maxAmmo, &maxClips );