From 7e62e77d7d8a406f8800de980b67c5cb213618de Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Tue, 16 May 2006 21:18:58 +0000 Subject: * Patches from bugs: 2677: Credit transfer, 2691: Disallow deconstruct during SD, 2698: nextweap bug on OS X, 2700: Fix to buildables underground bug, 2701: Fix to dretch exploit, 2706: Fix to jetpack uninit memory read --- src/cgame/cg_weapons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cgame') diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c index 671bc4ae..7b79fc5d 100644 --- a/src/cgame/cg_weapons.c +++ b/src/cgame/cg_weapons.c @@ -1175,7 +1175,7 @@ void CG_DrawItemSelect( rectDef_t *rect, vec4_t color ) // first make sure that whatever it selected is actually selectable if( cg.weaponSelect <= 32 && !CG_WeaponSelectable( cg.weaponSelect ) ) CG_NextWeapon_f( ); - else if( cg.weaponSelect > 32 && !CG_UpgradeSelectable( cg.weaponSelect ) ) + else if( cg.weaponSelect > 32 && !CG_UpgradeSelectable( cg.weaponSelect - 32 ) ) CG_NextWeapon_f( ); } -- cgit