We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dbe6a0 commit 9f35859Copy full SHA for 9f35859
1 file changed
src/blocks/looksblocks.cpp
@@ -964,8 +964,9 @@ void LooksBlocks::randomBackdropImpl(VirtualMachine *vm)
964
if (Stage *stage = vm->engine()->stage()) {
965
std::size_t count = stage->costumes().size();
966
967
- if (count > 0)
968
- stage->setCostumeIndex(rng->randint(0, count - 1));
+ if (count > 0) {
+ stage->setCostumeIndex(rng->randintExcept(0, count - 1, stage->costumeIndex()));
969
+ }
970
}
971
972
0 commit comments