mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-28 07:10:27 -04:00
Fix argument for repeat block
This commit is contained in:
parent
d52938c255
commit
2cd6bf93bb
1 changed files with 1 additions and 1 deletions
|
@ -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--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue