Try to fix tech error. Refs #1377.

This was SVN commit r11749.
This commit is contained in:
leper 2012-05-04 18:13:23 +00:00
parent d0784bd314
commit a5713c1264

View File

@ -47,9 +47,13 @@ Heal.prototype.GetTimers = function()
Heal.prototype.GetRange = function()
{
var cmpTechMan = QueryOwnerInterface(this.entity, IID_TechnologyManager);
var max = cmpTechMan.ApplyModifications("Heal/Range", +this.template.Range, this.entity);
var min = 0;
var max = +this.template.Range;
var cmpTechMan = QueryOwnerInterface(this.entity, IID_TechnologyManager);
if (cmpTechMan)
max = cmpTechMan.ApplyModifications("Heal/Range", max, this.entity);
return { "max": max, "min": min };
};