Skip to content

Commit 28d0993

Browse files
committed
Remove unneeded assertion from the wait block
This situation can actually happen when a running broadcast script with a (waiting) wait block is called. This causes a reset of its VM, but doesn't clear the time map. Anyway, this doesn't matter because the wait information is reset in startWait().
1 parent a9084f0 commit 28d0993

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/blocks/controlblocks.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ unsigned int ControlBlocks::stopOtherScriptsInSprite(VirtualMachine *vm)
171171
unsigned int ControlBlocks::startWait(VirtualMachine *vm)
172172
{
173173
auto currentTime = std::chrono::steady_clock::now();
174-
assert(m_timeMap.count(vm) == 0);
175174
m_timeMap[vm] = { currentTime, vm->getInput(0, 1)->toDouble() * 1000 };
176175
return 1;
177176
}

0 commit comments

Comments
 (0)