diff --git a/core/MenuStyle_Radio.cpp b/core/MenuStyle_Radio.cpp index e9b98546..306defd5 100644 --- a/core/MenuStyle_Radio.cpp +++ b/core/MenuStyle_Radio.cpp @@ -83,6 +83,10 @@ void CRadioStyle::OnSourceModLevelChange(const char *mapName) } g_bRadioInit = true; + + // Always register the style. Use IsSupported() to check for validity before use. + g_Menus.AddStyle(this); + const char *msg = g_pGameConf->GetKeyValue("HudRadioMenuMsg"); if (!msg || msg[0] == '\0') { @@ -118,7 +122,6 @@ void CRadioStyle::OnSourceModLevelChange(const char *mapName) } } - g_Menus.AddStyle(this); g_Menus.SetDefaultStyle(this); g_UserMsgs.HookUserMessage(g_ShowMenuId, this, false);