(618410bf9) Fixed clients crashing when opening the server settings menu

This commit is contained in:
Joonas Rikkonen
2019-06-04 15:36:58 +03:00
parent 82dee0ffd7
commit b31fbe23da
2 changed files with 8 additions and 3 deletions
@@ -464,7 +464,8 @@ namespace Barotrauma.Networking
((GUIComponent)obj).Visible = !((GUIComponent)obj).Visible;
return true;
};
InitMonstersEnabled();
List<string> monsterNames = MonsterEnabled.Keys.ToList();
tempMonsterEnabled = new Dictionary<string, bool>(MonsterEnabled);
foreach (string s in monsterNames)