From bc55a66b38a70e12bd5913206f83bf0a6734fefa Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 8 Dec 2011 23:21:53 +0000 Subject: 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 --- src/map/guild.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/map/guild.c') 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;imax_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; -- cgit v1.2.3-70-g09d2