Fix argument for repeat block

This commit is contained in:
Tim Mickel 2016-06-09 17:05:08 -04:00
parent d52938c255
commit 2cd6bf93bb

View file

@ -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--;