Fix rare crash in randomiser generation (#5585)

This commit is contained in:
Pepper0ni
2025-06-15 18:22:36 +01:00
committed by GitHub
parent 620d08002c
commit f2bc7cd1dc

View File

@@ -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();