Browse Source

Merge pull request #30 from Baalberith6/master

We can't use unsigned int for equip index since we put -1 in sd->equip_index[i] as sign of an empty place.
lighta 11 years ago
parent
commit
79fc389489
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/pc.c

+ 1 - 1
src/map/pc.c

@@ -8552,7 +8552,7 @@ static int pc_checkcombo(struct map_session_data *sd, struct item_data *data) {
 			
 			
 			for( k = 0; k < EQI_MAX; k++ ) {
 			for( k = 0; k < EQI_MAX; k++ ) {
 				bool do_continue = false; //used to continue that specific loop with some check that also use some loop
 				bool do_continue = false; //used to continue that specific loop with some check that also use some loop
-				uint16 index;
+				int16 index;
 				index = sd->equip_index[k];
 				index = sd->equip_index[k];
 				if( index < 0 ) continue;
 				if( index < 0 ) continue;
 				if( k == EQI_HAND_R   &&  sd->equip_index[EQI_HAND_L] == index ) continue;
 				if( k == EQI_HAND_R   &&  sd->equip_index[EQI_HAND_L] == index ) continue;