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 f0436e2 commit d5ed24aCopy full SHA for d5ed24a
src/engine/internal/engine.cpp
@@ -300,7 +300,7 @@ void Engine::initClone(Sprite *clone)
300
#ifndef NDEBUG
301
// Since we're initializing the clone, it shouldn't have any running scripts
302
for (const auto script : m_runningScripts)
303
- assert(script->target() != clone);
+ assert((script->target() != clone) || (std::find(m_scriptsToRemove.begin(), m_scriptsToRemove.end(), script.get()) != m_scriptsToRemove.end()));
304
#endif
305
306
for (auto script : scripts) {
0 commit comments