diff options
| author | Pepper0ni <93387759+Pepper0ni@users.noreply.github.com> | 2025-06-15 18:22:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-15 10:22:36 -0700 |
| commit | f2bc7cd1dce0918dacaa8bb71c2f867903006c64 (patch) | |
| tree | e9f02bbcff672ffcff598b6568cfd65e95a9bb4b | |
| parent | 620d08002c33ac6b1c70c4f1726de710ba06488c (diff) | |
Fix rare crash in randomiser generation (#5585)
| -rw-r--r-- | soh/soh/Enhancements/randomizer/randomizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/soh/Enhancements/randomizer/randomizer.cpp b/soh/soh/Enhancements/randomizer/randomizer.cpp index 7809a39c1..f0f57b353 100644 --- a/soh/soh/Enhancements/randomizer/randomizer.cpp +++ b/soh/soh/Enhancements/randomizer/randomizer.cpp @@ -3586,7 +3586,7 @@ std::thread randoThread; void GenerateRandomizerImgui(std::string seed = "") { CVarSetInteger(CVAR_GENERAL("RandoGenerating"), 1); - CVarSave(); + Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame(); auto ctx = Rando::Context::GetInstance(); // RANDOTODO proper UI for selecting if a spoiler loaded should be used for settings Rando::Settings::GetInstance()->SetAllToContext(); |
