Explorar o código

Fixed Guild Storage Expansion skill saving (#3306)

* Fixes #3301.
* Force the Guild Storage Expansion skill to save on level up so the next time the guild storage is opened the proper increase is shown.
Thanks to @spinzaku!
Aleos %!s(int64=6) %!d(string=hai) anos
pai
achega
bfd7af3423
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/char/int_guild.cpp

+ 2 - 0
src/char/int_guild.cpp

@@ -1673,6 +1673,8 @@ int mapif_parse_GuildSkillUp(int fd,int guild_id,uint16 skill_id,uint32 account_
 			mapif_guild_info(-1,g);
 		mapif_guild_skillupack(guild_id,skill_id,account_id);
 		g->save_flag |= (GS_LEVEL|GS_SKILL); // Change guild & guild_skill
+		if (skill_id == GD_GUILD_STORAGE)
+			inter_guild_tosql(g, g->save_flag); // Force save for GD_GUILD_STORAGE
 	}
 	return 0;
 }