aboutsummaryrefslogtreecommitdiff
path: root/src/game/Guild.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Guild.cpp')
-rw-r--r--src/game/Guild.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/Guild.cpp b/src/game/Guild.cpp
index b77bbf33864..8bd4d806ab8 100644
--- a/src/game/Guild.cpp
+++ b/src/game/Guild.cpp
@@ -1115,17 +1115,17 @@ void Guild::LoadGuildBankFromDB()
// data needs to be at first place for Item::LoadFromDB
// 0 1 2 3 4
- result = CharacterDatabase.PQuery("SELECT data, TabId, SlotId, item_guid, item_entry FROM guild_bank_item JOIN item_instance ON item_guid = guid WHERE guildid='%u' ORDER BY TabId", m_Id);
+ result = CharacterDatabase.PQuery("SELECT data, text, TabId, SlotId, item_guid, item_entry FROM guild_bank_item JOIN item_instance ON item_guid = guid WHERE guildid='%u' ORDER BY TabId", m_Id);
if (!result)
return;
do
{
Field *fields = result->Fetch();
- uint8 TabId = fields[1].GetUInt8();
- uint8 SlotId = fields[2].GetUInt8();
- uint32 ItemGuid = fields[3].GetUInt32();
- uint32 ItemEntry = fields[4].GetUInt32();
+ uint8 TabId = fields[2].GetUInt8();
+ uint8 SlotId = fields[3].GetUInt8();
+ uint32 ItemGuid = fields[4].GetUInt32();
+ uint32 ItemEntry = fields[5].GetUInt32();
if (TabId >= m_PurchasedTabs || TabId >= GUILD_BANK_MAX_TABS)
{