fix(Core/Unit): Fix infinite loop in RemoveAllControlled (#25087)
This commit is contained in:
@@ -8102,6 +8102,8 @@ void Unit::RemoveAllControlled(bool onDeath /*= false*/)
|
|||||||
target->ToTempSummon()->UnSummon();
|
target->ToTempSummon()->UnSummon();
|
||||||
it = m_Controlled.erase(it);
|
it = m_Controlled.erase(it);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
++it;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user