From 64f7bf9f96070ee91ffd9ac7fbfb1b270d2b655e Mon Sep 17 00:00:00 2001 From: nillerusr Date: Sun, 29 Jan 2023 21:48:36 +0300 Subject: [PATCH] vgui_controls: fix SetParent function --- serverbrowser/BaseGamesPage.cpp | 2 +- vgui2/vgui_controls/Panel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/serverbrowser/BaseGamesPage.cpp b/serverbrowser/BaseGamesPage.cpp index e0f80b63..6bdba32f 100644 --- a/serverbrowser/BaseGamesPage.cpp +++ b/serverbrowser/BaseGamesPage.cpp @@ -2205,7 +2205,7 @@ void CBaseGamesPage::ServerResponded( newgameserver_t &server ) { Msg("Serverbrowser: hostname %s\n", server.GetName()); - Assert( server.m_NetAdr.GetIP() != 0 ); + Assert( server.m_NetAdr.GetIPHostByteOrder() != 0 ); newgameserver_t *pServerItem = &server; diff --git a/vgui2/vgui_controls/Panel.cpp b/vgui2/vgui_controls/Panel.cpp index 3adbf7ed..ec2c5653 100644 --- a/vgui2/vgui_controls/Panel.cpp +++ b/vgui2/vgui_controls/Panel.cpp @@ -1465,7 +1465,7 @@ void Panel::SetParent(VPANEL newParent) if( ipanel()->IsProportional(GetVParent()) ) SetProportional(true); - if( IsPopup() ) + if( !IsPopup() ) { // most of the time KBInput == parents kbinput if (ipanel()->IsKeyBoardInputEnabled(GetVParent()) != IsKeyBoardInputEnabled())