mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
thought I was being smart by using inline assignment, but noooooo
This commit is contained in:
parent
e3b7f53319
commit
3f1c4aa2d8
1 changed files with 2 additions and 1 deletions
|
@ -344,7 +344,8 @@ class Scratch3LooksBlocks {
|
||||||
requestedCostume === 'next backdrop') {
|
requestedCostume === 'next backdrop') {
|
||||||
target.setCostume(target.currentCostume + 1);
|
target.setCostume(target.currentCostume + 1);
|
||||||
} else if (requestedCostume === 'random backdrop') {
|
} else if (requestedCostume === 'random backdrop') {
|
||||||
if ((numCostumes = target.getCostumes().length) > 1) {
|
const numCostumes = target.getCostumes().length;
|
||||||
|
if (numCostumes > 1) {
|
||||||
let index;
|
let index;
|
||||||
do {
|
do {
|
||||||
index = Math.floor(Math.random() * numCostumes);
|
index = Math.floor(Math.random() * numCostumes);
|
||||||
|
|
Loading…
Reference in a new issue