Fix argument for repeat block
This commit is contained in:
1 parent
d52938c255
commit
2cd6bf93bb
1 file changed
+1
-1
@@ -22,7 +22,7 @@ Scratch3ControlBlocks.prototype.getPrimitives = function() {
|
||||
Scratch3ControlBlocks.prototype.repeat = function(argValues, util) {
|
||||
// Initialize loop
|
||||
if (util.stackFrame.loopCounter === undefined) {
|
||||
util.stackFrame.loopCounter = parseInt(argValues[0]); // @todo arg
|
||||
util.stackFrame.loopCounter = parseInt(argValues.TIMES);
|
||||
}
|
||||
// Decrease counter
|
||||
util.stackFrame.loopCounter--;
|
||||
|
||||
Reference in new issue
Block a user