Drop not needed table 'item_text', add new column 'text' in table 'item_instance'. Original patch by Vladimir.
--HG-- branch : trunk
This commit is contained in:
1 parent
61e71986f0
commit
e3e5ca6227
16 files changed
+67
-158
No files matched your search
+5
-5
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user