diff options
author | n0n4m3 <none@none> | 2010-04-14 12:43:42 +0400 |
---|---|---|
committer | n0n4m3 <none@none> | 2010-04-14 12:43:42 +0400 |
commit | e3e5ca62270f010d5dbc2c160db22cbffa6dc94b (patch) | |
tree | a60290ce37faf031fbe705121e7efa446f77c846 /src/game/Guild.cpp | |
parent | 61e71986f076f636619380da8e800f084b4465f5 (diff) |
Drop not needed table 'item_text', add new column 'text' in table 'item_instance'. Original patch by Vladimir.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Guild.cpp')
-rw-r--r-- | src/game/Guild.cpp | 10 |
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) { |