fix the AI for the switch to the Repairable component

This was SVN commit r17678.
This commit is contained in:
mimo 2016-01-20 19:04:38 +00:00
parent dd545bdbf1
commit 87886b7b03

View file

@ -186,9 +186,7 @@ m.Template = m.Class({
isRepairable: function()
{
if (this.get("Health") !== undefined)
return this.get("Health/Repairable") === "true";
return false;
return this.get("Repairable") !== undefined;
},
getPopulationBonus: function() {