Skip to content
This repository was archived by the owner on Sep 3, 2019. It is now read-only.

Commit adf75db

Browse files
committed
Merge pull request #451 from LLK/fix-set-spec
Fix setting block specs for variable/list getters
2 parents 44c231e + c0a4964 commit adf75db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/Block.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public class Block extends Sprite {
191191
var b:Block;
192192
labelsAndArgs.push(b = declarationBlock());
193193
} else if (op == Specs.GET_VAR || op == Specs.GET_LIST) {
194-
labelsAndArgs.push(makeLabel(spec));
194+
labelsAndArgs = [makeLabel(spec)];
195195
} else {
196196
const loopBlocks:Array = ['doForever', 'doForeverIf', 'doRepeat', 'doUntil'];
197197
base.hasLoopArrow = (loopBlocks.indexOf(op) >= 0);

0 commit comments

Comments
 (0)