Skip to content

Commit 72b5f74

Browse files
committed
Fix unsigned integer issue when setting costume by index
1 parent 7d0608f commit 72b5f74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blocks/looksblocks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,8 @@ unsigned int LooksBlocks::size(VirtualMachine *vm)
685685

686686
void LooksBlocks::setCostumeByIndex(Target *target, long index)
687687
{
688-
// TODO: Remove this (#248)
689-
std::size_t costumeCount = target->costumes().size();
688+
long costumeCount = target->costumes().size();
689+
690690
if (index < 0 || index >= costumeCount) {
691691
if (index < 0)
692692
index = std::fmod(costumeCount + std::fmod(index, -costumeCount), costumeCount);

0 commit comments

Comments
 (0)