mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[9835] Fix broken compilation after [9831]. Thanks to VladimirMangos.
This commit is contained in:
parent
9c6b53aca9
commit
6726a08b48
2 changed files with 2 additions and 2 deletions
|
|
@ -1745,7 +1745,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
|||
else
|
||||
{
|
||||
// remove not targetable units if spell has no script targets
|
||||
for (UnitList::const_iterator itr = targetUnitMap.begin(); itr != targetUnitMap.end(); )
|
||||
for (UnitList::iterator itr = targetUnitMap.begin(); itr != targetUnitMap.end(); )
|
||||
{
|
||||
if (!(*itr)->isTargetableForAttack(m_spellInfo->AttributesEx3 & SPELL_ATTR_EX3_CAST_ON_DEAD))
|
||||
targetUnitMap.erase(itr++);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue