diff options
Diffstat (limited to 'src/game/LootMgr.cpp')
-rw-r--r-- | src/game/LootMgr.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/game/LootMgr.cpp b/src/game/LootMgr.cpp index 1ad17b7f6fd..38467e8acfe 100644 --- a/src/game/LootMgr.cpp +++ b/src/game/LootMgr.cpp @@ -1187,7 +1187,7 @@ void LoadLootTemplates_Creature() { if (uint32 lootid = cInfo->lootid) { - if (!ids_set.count(lootid)) + if (ids_set.find(lootid) == ids_set.end()) LootTemplates_Creature.ReportNotExistedId(lootid); else ids_setUsed.insert(lootid); @@ -1213,7 +1213,7 @@ void LoadLootTemplates_Disenchant() { if (uint32 lootid = proto->DisenchantID) { - if (!ids_set.count(lootid)) + if (ids_set.find(lootid) == ids_set.end()) LootTemplates_Disenchant.ReportNotExistedId(lootid); else ids_setUsed.insert(lootid); @@ -1234,7 +1234,7 @@ void LoadLootTemplates_Fishing() // remove real entries and check existence loot for (uint32 i = 1; i < sAreaStore.GetNumRows(); ++i) if (AreaTableEntry const* areaEntry = sAreaStore.LookupEntry(i)) - if (ids_set.count(areaEntry->ID)) + if (ids_set.find(areaEntry->ID) != ids_set.end()) ids_set.erase(areaEntry->ID); // output error for any still listed (not referenced from appropriate table) ids @@ -1253,7 +1253,7 @@ void LoadLootTemplates_Gameobject() { if (uint32 lootid = gInfo->GetLootId()) { - if (objmgr.IsGoOfSpecificEntrySpawned(gInfo->id) && !ids_set.count(lootid)) + if (objmgr.IsGoOfSpecificEntrySpawned(gInfo->id) && ids_set.find(lootid) == ids_set.end()) LootTemplates_Gameobject.ReportNotExistedId(lootid); else ids_setUsed.insert(lootid); @@ -1275,7 +1275,7 @@ void LoadLootTemplates_Item() // remove real entries and check existence loot for (uint32 i = 1; i < sItemStorage.MaxEntry; ++i) if (ItemPrototype const *proto = sItemStorage.LookupEntry<ItemPrototype>(i)) - if (ids_set.count(proto->ItemId)) + if (ids_set.find(proto->ItemId) != ids_set.end()) ids_set.erase(proto->ItemId); // output error for any still listed (not referenced from appropriate table) ids @@ -1297,7 +1297,7 @@ void LoadLootTemplates_Milling() if ((proto->BagFamily & BAG_FAMILY_MASK_HERBS) == 0) continue; - if (ids_set.count(proto->ItemId)) + if (ids_set.find(proto->ItemId) != ids_set.end()) ids_set.erase(proto->ItemId); } @@ -1317,7 +1317,7 @@ void LoadLootTemplates_Pickpocketing() { if(uint32 lootid = cInfo->pickpocketLootId) { - if(!ids_set.count(lootid)) + if (ids_set.find(lootid) == ids_set.end()) LootTemplates_Pickpocketing.ReportNotExistedId(lootid); else ids_setUsed.insert(lootid); @@ -1346,7 +1346,7 @@ void LoadLootTemplates_Prospecting() if ((proto->BagFamily & BAG_FAMILY_MASK_MINING_SUPP) == 0) continue; - if (ids_set.count(proto->ItemId)) + if (ids_set.find(proto->ItemId) != ids_set.end()) ids_set.erase(proto->ItemId); } @@ -1362,7 +1362,7 @@ void LoadLootTemplates_Mail() // remove real entries and check existence loot for(uint32 i = 1; i < sMailTemplateStore.GetNumRows(); ++i) if(sMailTemplateStore.LookupEntry(i)) - if(ids_set.count(i)) + if (ids_set.find(i) != ids_set.end()) ids_set.erase(i); // output error for any still listed (not referenced from appropriate table) ids @@ -1381,7 +1381,7 @@ void LoadLootTemplates_Skinning() { if (uint32 lootid = cInfo->SkinLootId) { - if (!ids_set.count(lootid)) + if (ids_set.find(lootid) == ids_set.end()) LootTemplates_Skinning.ReportNotExistedId(lootid); else ids_setUsed.insert(lootid); @@ -1411,7 +1411,7 @@ void LoadLootTemplates_Spell() if( !IsLootCraftingSpell(spellInfo)) continue; - if(!ids_set.count(spell_id)) + if (ids_set.find(spell_id) == ids_set.end()) { // not report about not trainable spells (optionally supported by DB) // ignore 61756 (Northrend Inscription Research (FAST QA VERSION) for example |