mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
chore(Apps/Codestyle): add new codestyle checks for pointers and range loops (#19841)
* chore(Apps/Codestyle): add new codestyle checks for pointers and range loops * revert a typo
This commit is contained in:
@@ -671,7 +671,7 @@ class spell_hun_readiness : public SpellScript
|
||||
std::set<std::pair<uint32, bool>> spellsToRemove;
|
||||
std::set<uint32> categoriesToRemove;
|
||||
|
||||
for (const auto& [spellId, cooldown] : cooldowns)
|
||||
for (auto const& [spellId, cooldown] : cooldowns)
|
||||
{
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||
if (spellInfo
|
||||
@@ -689,9 +689,9 @@ class spell_hun_readiness : public SpellScript
|
||||
}
|
||||
|
||||
// we can't remove spell cooldowns while iterating.
|
||||
for (const auto& [spellId, sendToClient] : spellsToRemove)
|
||||
for (auto const& [spellId, sendToClient] : spellsToRemove)
|
||||
caster->RemoveSpellCooldown(spellId, sendToClient);
|
||||
for (const auto& category : categoriesToRemove)
|
||||
for (auto const& category : categoriesToRemove)
|
||||
caster->RemoveCategoryCooldown(category);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user