summaryrefslogtreecommitdiff
path: root/src/cgame/cg_weapons.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-05-16 21:18:58 +0000
committerTim Angus <tim@ngus.net>2006-05-16 21:18:58 +0000
commit7e62e77d7d8a406f8800de980b67c5cb213618de (patch)
tree3ac49b1f30759aadf87679fd95511e4e92dba63d /src/cgame/cg_weapons.c
parentbac6bec08fe63e12578c47809823cb7ee3016c44 (diff)
* 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
Diffstat (limited to 'src/cgame/cg_weapons.c')
-rw-r--r--src/cgame/cg_weapons.c2
1 files changed, 1 insertions, 1 deletions
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( );
}