summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-04-10 07:13:38 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-04-10 07:13:38 +0000
commit1d680607095ad13d68db10ea6ae31740164baded (patch)
tree64c2a63a425589da8878ce9f8f769db2a5878d11 /src/map/guild.c
parent94da412fe250304a371605e6bf4a08ef1ca2fd3b (diff)
downloadhercules-1d680607095ad13d68db10ea6ae31740164baded.tar.gz
hercules-1d680607095ad13d68db10ea6ae31740164baded.tar.bz2
hercules-1d680607095ad13d68db10ea6ae31740164baded.tar.xz
hercules-1d680607095ad13d68db10ea6ae31740164baded.zip
* Fixed @changegm not updating guild window interface after changing the guild leader (bugreport:408, since r2622, related r3185).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14788 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index e56b346ec..7eb572660 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -1604,7 +1604,7 @@ int guild_gm_changed(int guild_id, int account_id, int char_id)
{
struct guild *g;
struct guild_member gm;
- int pos;
+ int pos, i;
g=guild_search(guild_id);
@@ -1638,7 +1638,18 @@ int guild_gm_changed(int guild_id, int account_id, int char_id)
g->member[0].sd->state.gmaster_flag = g;
//Block his skills for 5 minutes to prevent abuse.
guild_block_skill(g->member[0].sd, 300000);
- }
+ }
+
+ // announce the change to all guild members
+ for( i = 0; i < g->max_member; i++ )
+ {
+ if( g->member[i].sd && g->member[i].sd->fd )
+ {
+ clif_guild_basicinfo(g->member[i].sd);
+ clif_guild_memberlist(g->member[i].sd);
+ }
+ }
+
return 1;
}