mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-06-14 12:51:43 -05:00
Fix potential crash
This commit is contained in:
parent
04825e4b88
commit
f7a2aa09cb
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user