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