summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authoreathenabot <eathenabot@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-23 13:41:11 +0000
committereathenabot <eathenabot@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-23 13:41:11 +0000
commita1054261bf5a6083004b66ffc6cd44271aba1908 (patch)
treee5a6c2df010ca497d01721d3fd0c005b27d3d9d4 /src/map/unit.c
parenta4a01f981ecd7f8bda6cddcd1d7b28ed13345cdd (diff)
downloadhercules-a1054261bf5a6083004b66ffc6cd44271aba1908.tar.gz
hercules-a1054261bf5a6083004b66ffc6cd44271aba1908.tar.bz2
hercules-a1054261bf5a6083004b66ffc6cd44271aba1908.tar.xz
hercules-a1054261bf5a6083004b66ffc6cd44271aba1908.zip
* Merged changes up to eAthena 15038.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15225 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index d36886d7f..c76e9dc23 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -195,11 +195,11 @@ static int unit_walktoxy_timer(int tid, unsigned int tick, int id, intptr_t data
if ((skill = guild_checkskill(g, GD_HAWKEYES)) > 0) agidex |= skill&0xFFFF;
if (strvit || agidex)
{// replaced redundant foreachinrange call with smaller and much more efficient iteration
- for( i = 0; g->max_member > i; i++ )
+ for( i = 0; i < g->max_member; i++ )
{
- if( g->member[i].online && g->member[i].sd && check_distance_bl(&sd->bl, &g->member[i].sd->bl, 2) )
+ if( g->member[i].online && g->member[i].sd && sd->bl.m == g->member[i].sd->bl.m && check_distance_bl(&sd->bl, &g->member[i].sd->bl, 2) )
{// perform the aura on the member as appropriate
- skill_guildaura_sub( g->member[i].sd, sd->bl.id, strvit, agidex );
+ skill_guildaura_sub(g->member[i].sd, sd->bl.id, strvit, agidex);
}
}
}