Fix returning resources by formation members.

Noticed by @mysticjim.
Introduced in 21645f5c1c.

Differential revision: https://code.wildfiregames.com/D3931
Differential revision: D3838
Fixes: #6170
Reviewed by: @wraitii
This was SVN commit r25397.
This commit is contained in:
Freagarach 2021-05-07 07:05:57 +00:00
parent d2d0c6b347
commit 2dfc8681d2

View File

@ -558,9 +558,9 @@ UnitAI.prototype.UnitFsmSpec = {
"Order.ReturnResource": function(msg) {
if (this.CheckTargetRange(msg.data.target, IID_ResourceGatherer))
this.SetNextState("RETURNRESOURCE.DROPPINGRESOURCES");
this.SetNextState("INDIVIDUAL.RETURNRESOURCE.DROPPINGRESOURCES");
else if (this.AbleToMove())
this.SetNextState("RETURNRESOURCE.APPROACHING");
this.SetNextState("INDIVIDUAL.RETURNRESOURCE.APPROACHING");
else
return this.FinishOrder();
return ACCEPT_ORDER;