1
0
forked from 0ad/0ad

Fix UnitAI bug found by FalseVision

This was SVN commit r15409.
This commit is contained in:
sanderd17 2014-06-21 21:03:44 +00:00
parent 67d81996f6
commit 4e996de883

View File

@ -2543,7 +2543,7 @@ UnitAI.prototype.UnitFsmSpec = {
if (this.waypoints && this.waypoints.length)
{
if (!this.MoveToMarket(this.order.data.firstMarket))
this.stopTrading();
this.StopTrading();
}
else
this.PerformTradeAndMoveToNextMarket(this.order.data.firstMarket, this.order.data.secondMarket, "APPROACHINGSECONDMARKET");
@ -2559,7 +2559,7 @@ UnitAI.prototype.UnitFsmSpec = {
if (this.waypoints && this.waypoints.length)
{
if (!this.MoveToMarket(this.order.data.secondMarket))
this.stopTrading();
this.StopTrading();
}
else
this.PerformTradeAndMoveToNextMarket(this.order.data.secondMarket, this.order.data.firstMarket, "APPROACHINGFIRSTMARKET");