mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-22 01:05:53 -05:00
Fix scene group not being random
This commit is contained in:
@@ -58,6 +58,7 @@ OBSWeakSource SceneGroup::getNextSceneRandom()
|
||||
}
|
||||
|
||||
int rIdx = lastRandomScene;
|
||||
std::srand(std::time(0));
|
||||
do {
|
||||
rIdx = rand() % scenes.size();
|
||||
} while (rIdx == lastRandomScene);
|
||||
|
||||
Reference in New Issue
Block a user