From eae789c5c1ca4d4399d7ec7d89b57f0c980099e4 Mon Sep 17 00:00:00 2001 From: kaelima Date: Wed, 18 Jan 2012 18:13:57 +0100 Subject: Core/Protocol: Fix and activate a handful of opcodes, also some cleanup / documentation --- src/server/game/Guilds/Guild.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/server/game/Guilds/Guild.cpp') 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)); -- cgit v1.2.3