Fixes Attack.js error.

This was SVN commit r11892.
This commit is contained in:
historic_bruno
2012-05-20 22:51:51 +00:00
parent c4d6019599
commit 8fd3fbc210
@@ -321,7 +321,7 @@ Attack.prototype.GetAttackStrengths = function(type)
var cmpTechMan = QueryOwnerInterface(this.entity, IID_TechnologyManager);
var applyTechs = function(damageType)
{
var strength = +(self.template[type][damageType] || 0);
var strength = +(template[damageType] || 0);
if (cmpTechMan)
{
// All causes caching problems so disable it for now.