Index: code/cgame/cg_ents.c =================================================================== --- code/cgame/cg_ents.c (revision 2061) +++ code/cgame/cg_ents.c (working copy) @@ -410,7 +410,7 @@ // int col; s1 = ¢->currentState; - if ( s1->weapon > WP_NUM_WEAPONS ) { + if ( s1->weapon >= WP_NUM_WEAPONS ) { s1->weapon = 0; } weapon = &cg_weapons[s1->weapon]; @@ -519,7 +519,7 @@ const weaponInfo_t *weapon; s1 = ¢->currentState; - if ( s1->weapon > WP_NUM_WEAPONS ) { + if ( s1->weapon >= WP_NUM_WEAPONS ) { s1->weapon = 0; } weapon = &cg_weapons[s1->weapon];