Skip to content

Commit

Permalink
Spell: Fix usage of non-const
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Sep 6, 2021
1 parent e0e9957 commit c083380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Spells/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3554,7 +3554,7 @@ SpellCastResult Spell::cast(bool skipCheck)
{
if (Unit* target = m_targets.getUnitTarget())
{
for (auto& ihit : m_UniqueTargetInfo)
for (auto const& ihit : m_UniqueTargetInfo)
{
if (target->GetObjectGuid() == ihit.targetGUID) // Found in list
{
Expand Down

0 comments on commit c083380

Please sign in to comment.