mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-14 13:18:36 -05:00
Fix potential crash
This commit is contained in:
@@ -12,7 +12,7 @@ bool MacroActionSequence::_registered = MacroActionFactory::Register(
|
||||
int getNextUnpausedMacroIdx(std::vector<MacroRef> ¯os, int startIdx)
|
||||
{
|
||||
for (; (int)macros.size() > startIdx; ++startIdx) {
|
||||
if (!macros[startIdx]->Paused()) {
|
||||
if (macros[startIdx].get() && !macros[startIdx]->Paused()) {
|
||||
return startIdx;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user