Resolved Guild Storage Expansion not updating (#3321)

* Fixes #3317.
* Resolves the Guild Storage Expansion skill not refreshing the map server cached data.
* Updated some inter server checks to grab the proper max size of guild storages.
Thanks to @admkakaroto and @Lemongrass3110!
This commit is contained in:
Aleos
2018-07-18 17:10:07 -04:00
committed by GitHub
parent 8a353697b0
commit bbe552d1d3
2 changed files with 8 additions and 3 deletions

View File

@@ -603,7 +603,11 @@ char storage_guild_storageopen(struct map_session_data* sd)
return GSTORAGE_ALREADY_OPEN;
}
if((gstor = guild2storage2(sd->status.guild_id)) == NULL) {
if((gstor = guild2storage2(sd->status.guild_id)) == nullptr
#ifdef OFFICIAL_GUILD_STORAGE
|| (gstor->max_amount != guild_checkskill(sd->guild, GD_GUILD_STORAGE) * 100)
#endif
) {
intif_request_guild_storage(sd->status.account_id,sd->status.guild_id);
return GSTORAGE_OPEN;
}