1
0
forked from 0ad/0ad

fix a typo in 58e356babb, plus a missing semicolon

This was SVN commit r18234.
This commit is contained in:
mimo 2016-05-26 17:58:08 +00:00
parent 1b0fbee2d9
commit 0856dde011
2 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ ProductionQueue.prototype.GetTechnologiesList = function()
ProductionQueue.prototype.GetTechCostMultiplier = function()
{
let techCostMultiplier = {}
let techCostMultiplier = {};
for (let res in this.template.TechCostMultiplier)
techCostMultiplier[res] = ApplyValueModificationsToEntity("ProductionQueue/TechCostMultiplier/"+res, +this.template.TechCostMultiplier[res], this.entity);
return techCostMultiplier;

View File

@ -5226,7 +5226,7 @@ UnitAI.prototype.SetTargetMarket = function(target, source)
UnitAI.prototype.SwitchMarketOrder = function(oldMarket, newMarket)
{
if (this.order.data && this.order.data.target && this.order.data.target == oldMarket)
this.order.data.target == newMarket;
this.order.data.target = newMarket;
};
UnitAI.prototype.MoveToMarket = function(targetMarket)