Cleanup StopMoving for bots

This commit is contained in:
nytmyr
2025-02-02 08:45:51 -06:00
parent 91996f15f0
commit f2df8ababd
+4 -2
View File
@@ -1690,8 +1690,10 @@ void Mob::StopMoving()
void Mob::StopMoving(float new_heading)
{
if (IsBot()) {
CastToBot()->SetCombatJitterFlag(false);
CastToBot()->SetCombatOutOfRangeJitterFlag(false);
auto bot = CastToBot();
bot->SetCombatJitterFlag(false);
bot->SetCombatOutOfRangeJitterFlag(false);
}
StopNavigation();