summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-30 08:25:03 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-30 08:25:03 +0000
commit1a71202b477c6820b9193a1131a61c3c7b005924 (patch)
tree517c5a841b0dd02c120d8fa20a268a147a11425b /src/map/battle.c
parent97cb8eebed531dda76a2f4015a95823a9540dd0a (diff)
downloadhercules-1a71202b477c6820b9193a1131a61c3c7b005924.tar.gz
hercules-1a71202b477c6820b9193a1131a61c3c7b005924.tar.bz2
hercules-1a71202b477c6820b9193a1131a61c3c7b005924.tar.xz
hercules-1a71202b477c6820b9193a1131a61c3c7b005924.zip
* 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
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index c810d4092..4feb6d4ce 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1942,8 +1942,8 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
if (sc && sc->data[SC_MIRACLE]) i = 2; //Star anger
else
- ARR_FIND(0, 3, i, t_class == sd->hate_mob[i]);
- if (i < 3 && (skill=pc_checkskill(sd,sg_info[i].anger_id)))
+ ARR_FIND(0, MAX_PC_FEELHATE, i, t_class == sd->hate_mob[i]);
+ if (i < MAX_PC_FEELHATE && (skill=pc_checkskill(sd,sg_info[i].anger_id)))
{
skillratio = sd->status.base_level + sstatus->dex + sstatus->luk;
if (i == 2) skillratio += sstatus->str; //Star Anger