summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-15 22:02:08 -0300
committershennetsind <ind@henn.et>2013-04-15 22:02:08 -0300
commit8ce4eddbbfc874706f6a2e6f81c3b9f84ef2039e (patch)
tree135b439d171a40b5dbf8c383c5c700436f6458f7 /src/map/guild.c
parent3b6289f16d9b1b473d36f1efcbf8500d6d58f23f (diff)
downloadhercules-8ce4eddbbfc874706f6a2e6f81c3b9f84ef2039e.tar.gz
hercules-8ce4eddbbfc874706f6a2e6f81c3b9f84ef2039e.tar.bz2
hercules-8ce4eddbbfc874706f6a2e6f81c3b9f84ef2039e.tar.xz
hercules-8ce4eddbbfc874706f6a2e6f81c3b9f84ef2039e.zip
Fixed Bug #7167
a issue where sd->guild cache wasn't being assigned properly, which could cause the server to crash. http://hercules.ws/board/tracker/issue-7167-ally-channel-autojoin/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 2948d19c6..4ae350270 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -549,6 +549,7 @@ int guild_recv_info(struct guild *sg) {
guild_block_skill(sd, 300000);
//Also set the guild master flag.
+ sd->guild = g;
sd->state.gmaster_flag = g;
clif->charnameupdate(sd); // [LuzZza]
clif->guild_masterormember(sd);