Skip to content

Commit a7f66eb

Browse files
authored
fix(Core/Unit): Fix infinite loop in RemoveAllControlled (azerothcore#25087)
1 parent 8d1cc31 commit a7f66eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8102,6 +8102,8 @@ void Unit::RemoveAllControlled(bool onDeath /*= false*/)
81028102
target->ToTempSummon()->UnSummon();
81038103
it = m_Controlled.erase(it);
81048104
}
8105+
else
8106+
++it;
81058107
}
81068108
else
81078109
{

0 commit comments

Comments
 (0)