From 37d9ef012608a1ddaa839f7e6b63e22fcd821d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Borz=C3=AC?= Date: Tue, 5 Feb 2019 19:55:00 +0100 Subject: [PATCH] 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 --- src/server/game/Loot/LootMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index 6d0a592f6..e060b959f 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -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);