浏览代码

Fixed instance id being lost for guilds (#3592)

This happens on each change that causes the guild to be reloaded from the character server.

Fixes #3571

Thanks to @cydh
Lemongrass3110 6 年之前
父节点
当前提交
88d83a3030
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/map/guild.cpp

+ 5 - 0
src/map/guild.cpp

@@ -535,6 +535,11 @@ int guild_recv_info(struct guild *sg) {
 			bm++;
 	}
 
+	// Restore the instance id
+	if( !guild_new && before.instance_id ){
+		g->instance_id = before.instance_id;
+	}
+
 	for (i = 0; i < g->max_member; i++) { //Transmission of information at all members
 		sd = g->member[i].sd;
 		if( sd==NULL )