diff --git a/Content.Client/UserInterface/Systems/Language/LanguageMenuUIController.cs b/Content.Client/UserInterface/Systems/Language/LanguageMenuUIController.cs index a9dbe22ae13..e84e308b7d9 100644 --- a/Content.Client/UserInterface/Systems/Language/LanguageMenuUIController.cs +++ b/Content.Client/UserInterface/Systems/Language/LanguageMenuUIController.cs @@ -42,6 +42,7 @@ public void OnStateEntered(GameplayState state) { DebugTools.Assert(_languageWindow == null); + var entManager = IoCManager.Resolve(); var clientLanguageSystem = entManager.EntitySysManager.GetEntitySystem(); clientLanguageSystem.LanguagesUpdatedHook += LanguagesUpdatedHook; @@ -59,6 +60,7 @@ public void OnStateExited(GameplayState state) _languageWindow = null; } + var entManager = IoCManager.Resolve(); var clientLanguageSystem = entManager.EntitySysManager.GetEntitySystem(); clientLanguageSystem.LanguagesUpdatedHook -= LanguagesUpdatedHook;