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 7d0608f commit 72b5f74Copy full SHA for 72b5f74
src/blocks/looksblocks.cpp
@@ -685,8 +685,8 @@ unsigned int LooksBlocks::size(VirtualMachine *vm)
685
686
void LooksBlocks::setCostumeByIndex(Target *target, long index)
687
{
688
- // TODO: Remove this (#248)
689
- std::size_t costumeCount = target->costumes().size();
+ long costumeCount = target->costumes().size();
+
690
if (index < 0 || index >= costumeCount) {
691
if (index < 0)
692
index = std::fmod(costumeCount + std::fmod(index, -costumeCount), costumeCount);
0 commit comments