mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
chore(core): cleanup code p3 (#16073)
* Update MMapMgr.cpp * Update UpdateFetcher.cpp * Update AuctionHouseMgr.cpp * Update AuctionHouseMgr.h * Update BattlegroundAV.cpp * Update ChannelMgr.cpp * Update ThreatMgr.h * Update Player.h * Update PlayerSettings.cpp * Update ObjectMgr.cpp * Update Guild.cpp * Update Guild.h * Update Map.cpp * Update World.cpp * Update boss_nefarian.cpp * Update boss_prince_malchezaar.cpp * Update boss_venoxis.cpp * Update zone_elwynn_forest.cpp * Update zulfarrak.cpp * Update boss_novos.cpp
This commit is contained in:
@@ -948,7 +948,7 @@ void ObjectMgr::LoadCreatureCustomIDs()
|
||||
std::string stringCreatureIds = sConfigMgr->GetOption<std::string>("Creatures.CustomIDs", "");
|
||||
std::vector<std::string_view> CustomCreatures = Acore::Tokenize(stringCreatureIds, ',', false);
|
||||
|
||||
for (auto itr : CustomCreatures)
|
||||
for (auto& itr : CustomCreatures)
|
||||
{
|
||||
_creatureCustomIDsStore.push_back(Acore::StringTo<uint32>(itr).value());
|
||||
}
|
||||
@@ -1296,7 +1296,7 @@ void ObjectMgr::CheckCreatureTemplate(CreatureTemplate const* cInfo)
|
||||
const_cast<CreatureTemplate*>(cInfo)->DamageModifier *= Creature::_GetDamageMod(cInfo->rank);
|
||||
|
||||
// Hack for modules
|
||||
for (auto itr : _creatureCustomIDsStore)
|
||||
for (auto& itr : _creatureCustomIDsStore)
|
||||
{
|
||||
if (cInfo->Entry == itr)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user