summaryrefslogtreecommitdiff
path: root/mm/2s2h/Rando/Menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mm/2s2h/Rando/Menu.cpp')
-rw-r--r--mm/2s2h/Rando/Menu.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/mm/2s2h/Rando/Menu.cpp b/mm/2s2h/Rando/Menu.cpp
index 5be6cbd1f..9a05a6ecf 100644
--- a/mm/2s2h/Rando/Menu.cpp
+++ b/mm/2s2h/Rando/Menu.cpp
@@ -372,12 +372,7 @@ static void DrawGeneralTab() {
UIWidgets::CVarCheckbox("Enable Rando (Randomizes new files upon creation)", "gRando.Enabled");
if (UIWidgets::CVarCombobox("Seed", "gRando.SpoilerFileIndex", Rando::Spoiler::spoilerOptions)) {
- if (CVarGetInteger("gRando.SpoilerFileIndex", 0) == 0) {
- CVarSetString("gRando.SpoilerFile", "");
- } else {
- CVarSetString("gRando.SpoilerFile",
- Rando::Spoiler::spoilerOptions[CVarGetInteger("gRando.SpoilerFileIndex", 0)].c_str());
- }
+ Rando::Spoiler::SelectSpoiler(CVarGetInteger("gRando.SpoilerFileIndex", 0));
}
if (CVarGetInteger("gRando.SpoilerFileIndex", 0) == 0) {