Fix argument for repeat block

This commit is contained in:
Tim Mickel committed 2016-06-09 17:05:08 -04:00
1 parent d52938c255
commit 2cd6bf93bb
1 file changed
+1 -1
+1 -1
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--;