From b981a446b6631a8ebce7a7bcd0e5f06363bcf7e9 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Wed, 3 Jun 2020 19:55:06 +0200 Subject: [PATCH] fix for times switch not saving when using previous scene --- src/headers/switcher-data-structs.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/headers/switcher-data-structs.hpp b/src/headers/switcher-data-structs.hpp index 23446bed..bac54fe3 100644 --- a/src/headers/switcher-data-structs.hpp +++ b/src/headers/switcher-data-structs.hpp @@ -442,7 +442,8 @@ struct SwitcherData { for (size_t i = 0; i < timeSwitches.size(); i++) { TimeSwitch &s = timeSwitches[i]; - if (!WeakSourceValid(s.scene) || + if ((!s.usePreviousScene && + !WeakSourceValid(s.scene)) || !WeakSourceValid(s.transition)) timeSwitches.erase(timeSwitches.begin() + i--); }