Browse Source

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 years ago
parent
commit
88d83a3030
1 changed files with 5 additions and 0 deletions
  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 )