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:
Francesco Borzì
2019-02-05 19:55:00 +01:00
committed by Barbz
parent 6299a412a5
commit 37d9ef0126

View File

@@ -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);