mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +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);
|
||||
|
||||
// remove real entries and check existence loot
|
||||
for (uint32 i = 1; i < sAreaTableStore.GetNumRows(); ++i)
|
||||
if (sAreaTableStore.LookupEntry(i))
|
||||
for (uint32 i = 1; i < sMailTemplateStore.GetNumRows(); ++i)
|
||||
if (sMailTemplateStore.LookupEntry(i))
|
||||
if (lootIdSet.find(i) != lootIdSet.end())
|
||||
lootIdSet.erase(i);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user