fix switch priority falling back to default values on startup

This commit is contained in:
WarmUpTill 2020-07-09 19:57:55 +02:00
parent 098159dc0f
commit cd54cc17c0

View File

@ -332,7 +332,7 @@ void SwitcherData::loadGeneralSettings(obs_data_t *obj)
(obs_data_get_int(obj, "priority5"));
switcher->functionNamesByPriority[6] =
(obs_data_get_int(obj, "priority6"));
switcher->functionNamesByPriority[6] =
switcher->functionNamesByPriority[7] =
(obs_data_get_int(obj, "priority7"));
if (!switcher->prioFuncsValid()) {
switcher->functionNamesByPriority[0] = (DEFAULT_PRIORITY_0);