summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/guild.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 835f10f9e..71aa81b2d 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -323,6 +323,11 @@ int guild_send_xy_timer_sub(DBKey key,void *data,va_list ap)
nullpo_ret(g);
+ if( g->connect_member )
+ {// no members connected to this guild so do not iterate
+ return 0;
+ }
+
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