Prevent crashes when downgrading to older version of Twitch action

This commit is contained in:
WarmUpTill
2023-10-03 13:56:11 +02:00
committed by WarmUpTill
parent babe93a6ce
commit 3b4cb6934d

View File

@@ -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);
}