From a989cd97673eb20dbd9a2fed5723832d5cd39512 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Thu, 13 Apr 2017 11:30:00 +0000 Subject: fix a couple of compiler warnings --- src/game/bg_misc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/game/bg_misc.c') diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c index 2b4fa29..0ebcc55 100644 --- a/src/game/bg_misc.c +++ b/src/game/bg_misc.c @@ -3892,9 +3892,14 @@ void BG_FindAmmoForWeapon( int weapon, int *maxAmmo, int *maxClips ) *maxClips = bg_weapons[ i ].maxClips; //no need to keep going - break; + return; } } + + if( maxAmmo != NULL ) + *maxAmmo = 0; + if( maxClips != NULL ) + *maxClips = 0; } /* -- cgit