aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Guilds/Guild.cpp
diff options
context:
space:
mode:
authorkaelima <kaelima@live.se>2012-01-18 18:13:57 +0100
committerkaelima <kaelima@live.se>2012-01-18 18:13:57 +0100
commiteae789c5c1ca4d4399d7ec7d89b57f0c980099e4 (patch)
tree55c53cd54c6ad5b4bae765209f3e974df3a57062 /src/server/game/Guilds/Guild.cpp
parentba0af6f3c2439f131f0cf069be8d4b64a70cab6b (diff)
Core/Protocol: Fix and activate a handful of opcodes, also some cleanup / documentation
Diffstat (limited to 'src/server/game/Guilds/Guild.cpp')
-rwxr-xr-xsrc/server/game/Guilds/Guild.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/game/Guilds/Guild.cpp b/src/server/game/Guilds/Guild.cpp
index 6bffb2e545e..12dff5fbae2 100755
--- a/src/server/game/Guilds/Guild.cpp
+++ b/src/server/game/Guilds/Guild.cpp
@@ -1820,14 +1820,13 @@ 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 (_GetPurchasedTabsSize());
- // Why sending all info when not all tabs are purchased???
- for (uint8 tabId = 0; tabId < GUILD_BANK_MAX_TABS; ++tabId)
+ data << uint8(tabSize);
+ for (uint8 tabId = 0; tabId < tabSize; ++tabId)
{
data << uint32(_GetRankBankTabRights(rankId, tabId));
data << uint32(_GetMemberRemainingSlots(guid, tabId));