summaryrefslogtreecommitdiff
path: root/src/game/bg_misc.c
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-13 11:30:00 +0000
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:16 +0200
commita989cd97673eb20dbd9a2fed5723832d5cd39512 (patch)
tree59704a9b25a8b940811b2d4023884cdc37e231f8 /src/game/bg_misc.c
parent5e472f35354986a26ec9460fff2fc8b14dadf773 (diff)
fix a couple of compiler warnings
Diffstat (limited to 'src/game/bg_misc.c')
-rw-r--r--src/game/bg_misc.c7
1 files changed, 6 insertions, 1 deletions
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;
}
/*