mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-06 04:51:30 -07:00
Fix rare crash in randomiser generation (#5585)
Some checks are pending
Some checks are pending
This commit is contained in:
parent
620d08002c
commit
f2bc7cd1dc
1 changed files with 1 additions and 1 deletions
|
@ -3586,7 +3586,7 @@ std::thread randoThread;
|
||||||
|
|
||||||
void GenerateRandomizerImgui(std::string seed = "") {
|
void GenerateRandomizerImgui(std::string seed = "") {
|
||||||
CVarSetInteger(CVAR_GENERAL("RandoGenerating"), 1);
|
CVarSetInteger(CVAR_GENERAL("RandoGenerating"), 1);
|
||||||
CVarSave();
|
Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame();
|
||||||
auto ctx = Rando::Context::GetInstance();
|
auto ctx = Rando::Context::GetInstance();
|
||||||
// RANDOTODO proper UI for selecting if a spoiler loaded should be used for settings
|
// RANDOTODO proper UI for selecting if a spoiler loaded should be used for settings
|
||||||
Rando::Settings::GetInstance()->SetAllToContext();
|
Rando::Settings::GetInstance()->SetAllToContext();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue