From 17518640425b0b23f84e1e90ed81029f8463762a Mon Sep 17 00:00:00 2001 From: r3tk0n <r3tk0n@gmail.com> Date: Tue, 29 Jan 2019 16:13:11 -0800 Subject: [PATCH] Fix this references in module run function. --- scripts/system/controllers/controllerModules/teleport.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/system/controllers/controllerModules/teleport.js b/scripts/system/controllers/controllerModules/teleport.js index 124fe3d3ea..386e03d616 100644 --- a/scripts/system/controllers/controllerModules/teleport.js +++ b/scripts/system/controllers/controllerModules/teleport.js @@ -756,8 +756,8 @@ Script.include("/~/system/libraries/controllers.js"); this.run = function(controllerData, deltaTime) { // Kill condition: - if (this.shouldCancel()) { - this.disableLasers(); + if (_this.shouldCancel()) { + _this.disableLasers(); this.active = false; return makeRunningValues(false, [], []); }