Sfoglia il codice sorgente

* pc_combocheck fix. *combo_idx should be has -1 as the init value, not 0. Thx Daegaladh

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
Cydh Ramdh 11 anni fa
parent
commit
780b9d33d2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/map/pc.c

+ 1 - 1
src/map/pc.c

@@ -8525,7 +8525,7 @@ static int pc_checkcombo(struct map_session_data *sd, struct item_data *data) {
 		}
 
 		CREATE(combo_idx,int16,data->combos[i]->count);
-		memset(combo_idx,0,data->combos[i]->count);
+		memset(combo_idx,-1,data->combos[i]->count);
 		for( j = 0; j < data->combos[i]->count; j++ ) {
 			uint16 id = data->combos[i]->nameid[j], k;
 			bool found = false;