Explorar o código

Fixed #557 compile's error, follow up 64cb02e5f16b549f346be2f2857f13e6f3ebe046. Thank @anacondaqq

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
Cydh Ramdh %!s(int64=9) %!d(string=hai) anos
pai
achega
eb3d9587be
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      src/map/itemdb.c
  2. 1 1
      src/map/itemdb.h
  3. 1 1
      src/map/pc.c

+ 1 - 1
src/map/itemdb.c

@@ -789,7 +789,7 @@ static bool itemdb_read_itemdelay(char* str[], int columns, int current) {
 	if (columns == 2)
 		id->delay_sc = SC_NONE;
 	else
-		id->delay_sc = (sc_type)atoi(str[2]);
+		id->delay_sc = atoi(str[2]);
 
 	return true;
 }

+ 1 - 1
src/map/itemdb.h

@@ -450,7 +450,7 @@ struct item_data
 	/* bugreport:309 */
 	struct item_combo **combos;
 	unsigned char combos_count;
-	enum sc_type delay_sc; ///< Use delay group if any instead using player's item_delay data [Cydh]
+	short delay_sc; ///< Use delay group if any instead using player's item_delay data [Cydh]
 };
 
 struct item_data* itemdb_searchname(const char *name);

+ 1 - 1
src/map/pc.c

@@ -11041,7 +11041,7 @@ uint8 pc_itemcd_check(struct map_session_data *sd, struct item_data *id, unsigne
 		return 1;
 	}
 
-	sc_start(&sd->bl, &sd->bl, id->delay_sc, 100, id->nameid, id->delay);
+	sc_start(&sd->bl, &sd->bl, (sc_type)id->delay_sc, 100, id->nameid, id->delay);
 	return 0;
 }