Fix formation controller flag reset during patrol

0ace1b44b2 added setting some animation into a controller state,
but formation controllers don't have any animations.
Probably some code intended for individuals has been copied there
by mistake.

This likely caused the visual system to reevaluate the actor somehow
because the animation didn't exist.

Fixes #8817
This commit is contained in:
Atrik 2026-03-10 15:36:08 +01:00 committed by Vantha
parent d29890efb0
commit 56107e4e39

View file

@ -1161,16 +1161,12 @@ UnitAI.prototype.UnitFsmSpec = {
this.patrolStartPosOrder.targetClasses = this.order.data.targetClasses;
this.patrolStartPosOrder.allowCapture = this.order.data.allowCapture;
}
this.SetAnimationVariant("combat");
return false;
},
"leave": function()
{
delete this.patrolStartPosOrder;
this.SetDefaultAnimationVariant();
},
"PATROLLING": {