mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix(DB): mail_loot_template startup errors (#1404)
Fixed bug that made the core complaining about "unused mail_loot_template" while they were actually used Closes #1155
This commit is contained in:
@@ -1801,8 +1801,8 @@ void LoadLootTemplates_Mail()
|
|||||||
uint32 count = LootTemplates_Mail.LoadAndCollectLootIds(lootIdSet);
|
uint32 count = LootTemplates_Mail.LoadAndCollectLootIds(lootIdSet);
|
||||||
|
|
||||||
// remove real entries and check existence loot
|
// remove real entries and check existence loot
|
||||||
for (uint32 i = 1; i < sAreaTableStore.GetNumRows(); ++i)
|
for (uint32 i = 1; i < sMailTemplateStore.GetNumRows(); ++i)
|
||||||
if (sAreaTableStore.LookupEntry(i))
|
if (sMailTemplateStore.LookupEntry(i))
|
||||||
if (lootIdSet.find(i) != lootIdSet.end())
|
if (lootIdSet.find(i) != lootIdSet.end())
|
||||||
lootIdSet.erase(i);
|
lootIdSet.erase(i);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user