diff options
Diffstat (limited to 'src/ui/ui_shared.c')
-rw-r--r-- | src/ui/ui_shared.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c index 3240ebb8..67824064 100644 --- a/src/ui/ui_shared.c +++ b/src/ui/ui_shared.c @@ -4105,6 +4105,7 @@ menuDef_t *Menus_ActivateByName(const char *p) { int i; menuDef_t *m = NULL; menuDef_t *focus = Menu_GetFocused(); + for (i = 0; i < menuCount; i++) { if (Q_stricmp(Menus[i].window.name, p) == 0) { m = &Menus[i]; @@ -5568,8 +5569,6 @@ Menu_New void Menu_New(int handle) { menuDef_t *menu = &Menus[menuCount]; - Com_Printf( "menu_new\n" ); - if (menuCount < MAX_MENUS) { Menu_Init(menu); if (Menu_Parse(handle, menu)) { |