Fix missing return in 3c4a341906
.
Caused entities to walk to the edge of the map when their dropsite was destroyed. This was SVN commit r25211.
This commit is contained in:
parent
76acc4e146
commit
f5a0ab81b6
@ -2531,10 +2531,11 @@ UnitAI.prototype.UnitFsmSpec = {
|
||||
|
||||
"InventoryFilled": function(msg) {
|
||||
let nearestDropsite = this.FindNearestDropsite(this.order.data.type.generic);
|
||||
if (!nearestDropsite)
|
||||
if (nearestDropsite)
|
||||
this.PushOrderFront("ReturnResource", { "target": nearestDropsite, "force": false });
|
||||
else
|
||||
this.FinishOrder();
|
||||
|
||||
this.PushOrderFront("ReturnResource", { "target": nearestDropsite, "force": false });
|
||||
},
|
||||
|
||||
"OutOfRange": function(msg) {
|
||||
|
Loading…
Reference in New Issue
Block a user