summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-08 22:57:32 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-08 22:57:32 +0000
commit250ce2d21f11101deb28005081c7d9ea664df8b8 (patch)
treecc493decdcc04fac9350ecdb1e6304f5fd572d09 /src
parentfc32c0656e13f0fb477c125c383d016fc2a3155e (diff)
downloadhercules-250ce2d21f11101deb28005081c7d9ea664df8b8.tar.gz
hercules-250ce2d21f11101deb28005081c7d9ea664df8b8.tar.bz2
hercules-250ce2d21f11101deb28005081c7d9ea664df8b8.tar.xz
hercules-250ce2d21f11101deb28005081c7d9ea664df8b8.zip
- Changed guild member x/y timer to not process the guild if no members are online
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15032 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-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