fix(Core/Unit): Fix infinite loop in RemoveAllControlled (#25087)

This commit is contained in:
Shard 2026-03-15 00:32:54 +01:00 committed by GitHub
parent 8d1cc31ae7
commit a7f66eb006
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8102,6 +8102,8 @@ void Unit::RemoveAllControlled(bool onDeath /*= false*/)
target->ToTempSummon()->UnSummon();
it = m_Controlled.erase(it);
}
else
++it;
}
else
{