From 56cbc49d04d8313e8e1374f2eadaaa479d6ca1b0 Mon Sep 17 00:00:00 2001 From: Felix Linker Date: Sun, 9 Sep 2018 16:26:03 +0200 Subject: [PATCH] fix: when querying falloff mods is checked to be not undefined --- src/app/shipyard/Module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shipyard/Module.js b/src/app/shipyard/Module.js index 9784f476..59a2af78 100755 --- a/src/app/shipyard/Module.js +++ b/src/app/shipyard/Module.js @@ -435,7 +435,7 @@ export default class Module { } // Falloff from range is mapped to range - if (this.mods['fallofffromrange']) { + if (this.mods && this.mods['fallofffromrange']) { return this.getRange(); // If range is modified but not falloff, increase the falloff to keep ratio } else if (this.getModValue('range')) {