From 1d680607095ad13d68db10ea6ae31740164baded Mon Sep 17 00:00:00 2001 From: ai4rei Date: Sun, 10 Apr 2011 07:13:38 +0000 Subject: * 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 --- src/map/guild.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2