mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-11 11:47:41 -05:00
Prevent crashes when downgrading to older version of Twitch action
This commit is contained in:
@@ -330,6 +330,9 @@ bool MacroActionTwitch::ActionIsSupportedByToken()
|
||||
}
|
||||
auto option = requiredOption.find(_action);
|
||||
assert(option != requiredOption.end());
|
||||
if (option == requiredOption.end()) {
|
||||
return false;
|
||||
}
|
||||
return token->OptionIsEnabled(option->second);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user