Core/Items: ported random enchantment updates from master branch
This commit is contained in:
1 parent
9687131c65
commit
928aeccd59
21 files changed
+29506
-252
No files matched your search
@@ -511,9 +511,9 @@ void Guild::BankTab::LoadFromDB(Field* fields)
|
||||
|
||||
bool Guild::BankTab::LoadItemFromDB(Field* fields)
|
||||
{
|
||||
uint8 slotId = fields[13].GetUInt8();
|
||||
ObjectGuid::LowType itemGuid = fields[14].GetUInt32();
|
||||
uint32 itemEntry = fields[15].GetUInt32();
|
||||
uint8 slotId = fields[14].GetUInt8();
|
||||
ObjectGuid::LowType itemGuid = fields[15].GetUInt32();
|
||||
uint32 itemEntry = fields[16].GetUInt32();
|
||||
if (slotId >= GUILD_BANK_MAX_SLOTS)
|
||||
{
|
||||
TC_LOG_ERROR("guild", "Invalid slot for item (GUID: %u, id: %u) in guild bank, skipped.", itemGuid, itemEntry);
|
||||
@@ -2776,11 +2776,11 @@ void Guild::LoadBankTabFromDB(Field* fields)
|
||||
|
||||
bool Guild::LoadBankItemFromDB(Field* fields)
|
||||
{
|
||||
uint8 tabId = fields[12].GetUInt8();
|
||||
uint8 tabId = fields[13].GetUInt8();
|
||||
if (tabId >= _GetPurchasedTabsSize())
|
||||
{
|
||||
TC_LOG_ERROR("guild", "Invalid tab for item (GUID: %u, id: #%u) in guild bank, skipped.",
|
||||
fields[14].GetUInt32(), fields[15].GetUInt32());
|
||||
fields[15].GetUInt32(), fields[16].GetUInt32());
|
||||
return false;
|
||||
}
|
||||
return m_bankTabs[tabId]->LoadItemFromDB(fields);
|
||||
|
||||
Reference in new issue
Block a user