From d2c1fe64454dcf4e2360aec0a9c8d5bf57302b3f Mon Sep 17 00:00:00 2001 From: flowtron Date: Thu, 30 Oct 2008 08:26:33 +0000 Subject: [PATCH] don't ignore the knife git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3318 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/weapon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/weapon.cpp b/source/src/weapon.cpp index dd687db9..c69d1d87 100644 --- a/source/src/weapon.cpp +++ b/source/src/weapon.cpp @@ -100,8 +100,8 @@ int currentprimary() { return player1->primweap->type; } int prevweapon() { return player1->prevweaponsel->type; } int curweapon() { return player1->weaponsel->type; } -int magcontent(int w) { if(w > 0 && w < NUMGUNS) return player1->weapons[w]->mag; else return -1;} -int magreserve(int w) { if(w > 0 && w < NUMGUNS) return player1->weapons[w]->ammo; else return -1;} +int magcontent(int w) { if(w >= 0 && w < NUMGUNS) return player1->weapons[w]->mag; else return -1;} +int magreserve(int w) { if(w >= 0 && w < NUMGUNS) return player1->weapons[w]->ammo; else return -1;} COMMANDN(weapon, selectweaponi, ARG_1INT); COMMAND(shiftweapon, ARG_1INT);