Browse Source

Fix item_combo who wasn't checking for different index in case of same item required for combo (e.g 2890:2890,{ bonus bAgi,10; })

lighta 11 years ago
parent
commit
78a4782abb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/map/pc.c

+ 1 - 0
src/map/pc.c

@@ -8496,6 +8496,7 @@ int pc_checkcombo(struct map_session_data *sd, struct item_data *data) {
 				continue;
 		}
 
+		int *combo_idx = aMalloc(data->combos[i]->count);
 		for( j = 0; j < data->combos[i]->count; j++ ) {
 			int id = data->combos[i]->nameid[j];
 			bool found = false;