diff options
| author | kaelima <kaelima@live.se> | 2012-01-18 19:01:22 +0100 |
|---|---|---|
| committer | kaelima <kaelima@live.se> | 2012-01-18 19:01:22 +0100 |
| commit | 99086ac8a840515281447b4ddd1cd9ce14fee9a3 (patch) | |
| tree | 0aaec57606df82cfa53055220db6c8e2494874a6 /src/server/game/Guilds/Guild.cpp | |
| parent | ba23b69a17e6eb8cc1173cd179bf8e1ae8ab6759 (diff) | |
Core/Protocol: Refix MSG_GUILD_PERMISSIONS after a misstake in my last commit
Diffstat (limited to 'src/server/game/Guilds/Guild.cpp')
| -rwxr-xr-x | src/server/game/Guilds/Guild.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/Guilds/Guild.cpp b/src/server/game/Guilds/Guild.cpp index 12dff5fbae2..a7c5b04bcba 100755 --- a/src/server/game/Guilds/Guild.cpp +++ b/src/server/game/Guilds/Guild.cpp @@ -1820,13 +1820,12 @@ void Guild::SendPermissions(WorldSession* session) const { uint64 guid = session->GetPlayer()->GetGUID(); uint8 rankId = session->GetPlayer()->GetRank(); - uint8 tabSize = _GetPurchasedTabsSize(); WorldPacket data(MSG_GUILD_PERMISSIONS, 4 * 15 + 1); data << uint32(rankId); data << uint32(_GetRankRights(rankId)); data << uint32(_GetMemberRemainingMoney(guid)); - data << uint8(tabSize); - for (uint8 tabId = 0; tabId < tabSize; ++tabId) + data << uint8(_GetPurchasedTabsSize()); + for (uint8 tabId = 0; tabId < GUILD_BANK_MAX_TABS; ++tabId) { data << uint32(_GetRankBankTabRights(rankId, tabId)); data << uint32(_GetMemberRemainingSlots(guid, tabId)); |
