mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -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') {
|
||||
target.setCostume(target.currentCostume + 1);
|
||||
} else if (requestedCostume === 'random backdrop') {
|
||||
if ((numCostumes = target.getCostumes().length) > 1) {
|
||||
const numCostumes = target.getCostumes().length;
|
||||
if (numCostumes > 1) {
|
||||
let index;
|
||||
do {
|
||||
index = Math.floor(Math.random() * numCostumes);
|
||||
|
|
Loading…
Reference in a new issue