From 8fd3fbc2100fbad333d4e94e944243eedea8ec6a Mon Sep 17 00:00:00 2001 From: historic_bruno Date: Sun, 20 May 2012 22:51:51 +0000 Subject: [PATCH] Fixes Attack.js error. This was SVN commit r11892. --- binaries/data/mods/public/simulation/components/Attack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binaries/data/mods/public/simulation/components/Attack.js b/binaries/data/mods/public/simulation/components/Attack.js index 8850137ab4..b284a9b951 100644 --- a/binaries/data/mods/public/simulation/components/Attack.js +++ b/binaries/data/mods/public/simulation/components/Attack.js @@ -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.