diff --git a/src/engine/thread.js b/src/engine/thread.js index 6094a8254e4..b3301fe74ce 100644 --- a/src/engine/thread.js +++ b/src/engine/thread.js @@ -390,7 +390,8 @@ class Thread { let callCount = 5; // Max number of enclosing procedure calls to examine. const sp = this.stack.length - 1; for (let i = sp - 1; i >= 0; i--) { - const block = this.target.blocks.getBlock(this.stack[i]); + const block = this.target.blocks.getBlock(this.stack[i]) || + this.target.runtime.flyoutBlocks.getBlock(this.stack[i]); if (block.opcode === 'procedures_call' && block.mutation.proccode === procedureCode) { return true;