Core/PacketIO: Port guild packets to classes as example of new self-validating strings

(cherry picked from commit f0fe5f8b66)
This commit is contained in:
Shauren
2020-03-19 00:17:36 +01:00
parent 3ebfa8cc64
commit e7295fd3de
3 changed files with 15 additions and 57 deletions

View File

@@ -2192,7 +2192,7 @@ void Guild::SendPermissions(WorldSession* session) const
WorldPackets::Guild::GuildPermissionsQueryResults queryResult;
queryResult.RankID = rankId;
queryResult.WithdrawGoldLimit = int32(_GetRankBankMoneyPerDay(rankId));
queryResult.WithdrawGoldLimit = _GetRankBankMoneyPerDay(rankId);
queryResult.Flags = _GetRankRights(rankId);
queryResult.NumTabs = _GetPurchasedTabsSize();
queryResult.Tab.reserve(GUILD_BANK_MAX_TABS);