summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-08 23:21:53 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-08 23:21:53 +0000
commitbc55a66b38a70e12bd5913206f83bf0a6734fefa (patch)
tree2b2352161f4c9353c032a15f9a56b05f67146875 /src/map/guild.c
parenta0be3ac7b85dbe9014491df75e22c1fa8a8925f4 (diff)
downloadhercules-bc55a66b38a70e12bd5913206f83bf0a6734fefa.tar.gz
hercules-bc55a66b38a70e12bd5913206f83bf0a6734fefa.tar.bz2
hercules-bc55a66b38a70e12bd5913206f83bf0a6734fefa.tar.xz
hercules-bc55a66b38a70e12bd5913206f83bf0a6734fefa.zip
Performance Improvement on the guild xy timer, removed a unnecessary idb lookup
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15034 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 8adb4c4a3..8c5988dc8 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -329,9 +329,8 @@ int guild_send_xy_timer_sub(DBKey key,void *data,va_list ap)
}
for(i=0;i<g->max_member;i++){
- //struct map_session_data* sd = g->member[i].sd;
- struct map_session_data* sd = map_charid2sd(g->member[i].char_id); // temporary crashfix
- if( sd != NULL && (sd->guild_x != sd->bl.x || sd->guild_y != sd->bl.y) && !sd->bg_id )
+ struct map_session_data* sd = g->member[i].sd;
+ if( sd != NULL && sd->fd && (sd->guild_x != sd->bl.x || sd->guild_y != sd->bl.y) && !sd->bg_id )
{
clif_guild_xy(sd);
sd->guild_x = sd->bl.x;