We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c99bcdb commit a92fe8fCopy full SHA for a92fe8f
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