mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Fully fix memory leak from settings UI + fix UI reload breaking it
This commit is contained in:
1 parent
07296ed616
commit
52132e18f8
22 files changed
+160
-84
No files matched your search
@@ -185,7 +185,7 @@ public static class MainMenuManagerPatch
|
||||
{
|
||||
GameOptionsManager.Instance.Initialize();
|
||||
|
||||
if (GameOptionsManager.Instance.normalGameHostOptions.MapId is 3 or > 5)
|
||||
if (GameOptionsManager.Instance.normalGameHostOptions.MapId == 3 || (GameOptionsManager.Instance.normalGameHostOptions.MapId > 5 && !SubmergedCompatibility.Loaded))
|
||||
{
|
||||
GameOptionsManager.Instance.normalGameHostOptions.MapId = 0;
|
||||
GameOptionsManager.Instance.SaveNormalHostOptions();
|
||||
|
||||
Reference in new issue
Block a user