From 1a71202b477c6820b9193a1131a61c3c7b005924 Mon Sep 17 00:00:00 2001 From: ai4rei Date: Tue, 30 Nov 2010 08:25:03 +0000 Subject: * Added a define for star gladiator feel/hate info array length (follow up to r8721 and r11840). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14523 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index bb0eee4bf..37882908a 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -67,7 +67,7 @@ struct duel duel_list[MAX_DUEL]; int duel_count = 0; //Links related info to the sd->hate_mob[]/sd->feel_map[] entries -const struct sg_data sg_info[3] = { +const struct sg_data sg_info[MAX_PC_FEELHATE] = { { SG_SUN_ANGER, SG_SUN_BLESS, SG_SUN_COMFORT, "PC_FEEL_SUN", "PC_HATE_MOB_SUN", is_day_of_sun }, { SG_MOON_ANGER, SG_MOON_BLESS, SG_MOON_COMFORT, "PC_FEEL_MOON", "PC_HATE_MOB_MOON", is_day_of_moon }, { SG_STAR_ANGER, SG_STAR_BLESS, SG_STAR_COMFORT, "PC_FEEL_STAR", "PC_HATE_MOB_STAR", is_day_of_star } @@ -1030,7 +1030,7 @@ int pc_reg_received(struct map_session_data *sd) } //SG map and mob read [Komurka] - for(i=0;i<3;i++) //for now - someone need to make reading from txt/sql + for(i=0;ifeel_map[i].index = j; @@ -5460,7 +5460,7 @@ int pc_resetfeel(struct map_session_data* sd) int i; nullpo_ret(sd); - for (i=0; i<3; i++) + for (i=0; ifeel_map[i].m = -1; sd->feel_map[i].index = 0; -- cgit v1.2.3-70-g09d2