fix: when querying falloff mods is checked to be not undefined

This commit is contained in:
Felix Linker
2018-09-09 16:26:03 +02:00
parent 5d1ccd2a20
commit 56cbc49d04

View File

@@ -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')) {