From 878af82d8f59446a590050d2e8cae0cc607093f1 Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 16 Mar 2013 15:30:40 +0100 Subject: [PATCH] fixed frozen GUI caused by popups --- src/game/client/components/menus.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 8d0bdb16f..d625d4c0d 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -1311,6 +1311,9 @@ int CMenus::Render() if(DoButton_Menu(&s_Button, pButtonText, 0, &Part) || m_EscapePressed || m_EnterPressed) m_Popup = POPUP_NONE; } + + if(m_Popup == POPUP_NONE) + UI()->SetActiveItem(0); } return 0;