mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
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:
parent
3fd4d07ca1
commit
cf7b8329fb
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue