Use var instead of let, since this variable is defined with var in this function already.

This was SVN commit r17540.
This commit is contained in:
leper 2015-12-22 20:43:17 +00:00
parent 3fd4d07ca1
commit cf7b8329fb

View file

@ -2351,7 +2351,7 @@ UnitAI.prototype.UnitFsmSpec = {
// Give up on this order and try our next queued order
// but first check what is our next order and, if needed, insert a returnResource order
let cmpResourceGatherer = Engine.QueryInterface(this.entity, IID_ResourceGatherer);
var cmpResourceGatherer = Engine.QueryInterface(this.entity, IID_ResourceGatherer);
if (cmpResourceGatherer.IsCarrying(resourceType.generic) &&
this.orderQueue.length > 1 && this.orderQueue[1] !== "ReturnResource" &&
(this.orderQueue[1].type !== "Gather" || this.orderQueue[1].data.type.generic !== resourceType.generic))