From cd54cc17c0f7939c2d47a4bc34f8b5af30d6d4d2 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Thu, 9 Jul 2020 19:57:55 +0200 Subject: [PATCH] fix switch priority falling back to default values on startup --- src/general.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/general.cpp b/src/general.cpp index 73f66668..11a8ae45 100644 --- a/src/general.cpp +++ b/src/general.cpp @@ -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);