mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-03 23:26:00 -05:00
do not switch if entry is uninitialized for window, time, region, random
This commit is contained in:
@@ -47,6 +47,9 @@ void SwitcherData::checkRandom(bool &match, OBSWeakSource &scene,
|
||||
std::mt19937 urng(rng());
|
||||
std::shuffle(rs.begin(), rs.end(), urng);
|
||||
for (RandomSwitch &r : rs) {
|
||||
if (!r.initialized())
|
||||
continue;
|
||||
|
||||
if (r.scene == lastRandomScene)
|
||||
continue;
|
||||
scene = r.scene;
|
||||
|
||||
Reference in New Issue
Block a user