diff --git a/src/js/game/systems/constant_signal.js b/src/js/game/systems/constant_signal.js index cdf742b3..93417ef5 100644 --- a/src/js/game/systems/constant_signal.js +++ b/src/js/game/systems/constant_signal.js @@ -107,6 +107,11 @@ export class ConstantSignalSystem extends GameSystemWithFilter { * @returns {BaseItem} */ parseSignalCode(code) { + if (!this.root || !this.root.shapeDefinitionMgr) { + // Stale reference + return null; + } + code = trim(code); const codeLower = code.toLowerCase();