fix(Core/Unit): Fix infinite loop in RemoveAllControlled (#25087)
This commit is contained in:
parent
8d1cc31ae7
commit
a7f66eb006
1 changed files with 2 additions and 0 deletions
|
|
@ -8102,6 +8102,8 @@ void Unit::RemoveAllControlled(bool onDeath /*= false*/)
|
|||
target->ToTempSummon()->UnSummon();
|
||||
it = m_Controlled.erase(it);
|
||||
}
|
||||
else
|
||||
++it;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue