From 26cfbfe5883a501ca4ab74579cb8b4219b7b0005 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Tue, 8 May 2018 17:15:54 -0400 Subject: [PATCH] Fix stage checking --- src/serialization/sb2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serialization/sb2.js b/src/serialization/sb2.js index f50e7f1ba..65460b06c 100644 --- a/src/serialization/sb2.js +++ b/src/serialization/sb2.js @@ -251,7 +251,7 @@ const parseMonitorObject = (object, runtime, targets, extensions) => { let isSpriteLocalVariable; if (object.cmd === 'getVar:' || object.cmd === 'contentsOfList:') { // These monitors are sprite-specific if they are not targetting the stage. - isSpriteLocalVariable = object.target.isStage; + isSpriteLocalVariable = !target.isStage; // Variable getters have special block IDs for the toolbox that match the variable ID. block.id = getVariableId(object.param); }