diff options
| author | Shauren <shauren.trinity@gmail.com> | 2016-02-06 17:53:37 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2016-05-20 23:48:48 +0200 |
| commit | 885d9b53c38662e00e3b4977b82e9cf36d197f94 (patch) | |
| tree | 913178bb8bdc6d4b9d722202b3255733329556d0 /src/server/game/Loot/LootMgr.cpp | |
| parent | 41ae38d94d627f1945dc1aed46837068b83ed654 (diff) | |
Core/DataStores: Updated dbc/db2 to 7.0.1.20994
Diffstat (limited to 'src/server/game/Loot/LootMgr.cpp')
| -rw-r--r-- | src/server/game/Loot/LootMgr.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index be4f71e8b71..2452c8f913e 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -1586,10 +1586,9 @@ void LoadLootTemplates_Fishing() uint32 count = LootTemplates_Fishing.LoadAndCollectLootIds(lootIdSet); // remove real entries and check existence loot - for (uint32 i = 1; i < sAreaTableStore.GetNumRows(); ++i) - if (AreaTableEntry const* areaEntry = sAreaTableStore.LookupEntry(i)) - if (lootIdSet.find(areaEntry->ID) != lootIdSet.end()) - lootIdSet.erase(areaEntry->ID); + for (auto itr = sAreaTableStore.begin(); itr != sAreaTableStore.end(); ++itr) + if (lootIdSet.find(itr.ID()) != lootIdSet.end()) + lootIdSet.erase(itr.ID()); // output error for any still listed (not referenced from appropriate table) ids LootTemplates_Fishing.ReportUnusedIds(lootIdSet); |
