Skip to content

Commit 5354253

Browse files
aspizuadazem009
authored andcommitted
Only switch to a random backdrop if there are more than 1 backdrops.
1 parent d50ca45 commit 5354253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/looksblocks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ void LooksBlocks::randomBackdropImpl(VirtualMachine *vm)
964964
if (Stage *stage = vm->engine()->stage()) {
965965
std::size_t count = stage->costumes().size();
966966

967-
if (count > 0) {
967+
if (count > 1) {
968968
stage->setCostumeIndex(rng->randintExcept(0, count - 1, stage->costumeIndex()));
969969
}
970970
}

0 commit comments

Comments
 (0)