diff --git a/sp/src/game/client/vgui_video.cpp b/sp/src/game/client/vgui_video.cpp index 3badea3fa0..6df78893b2 100644 --- a/sp/src/game/client/vgui_video.cpp +++ b/sp/src/game/client/vgui_video.cpp @@ -24,7 +24,12 @@ VideoPanel::VideoPanel( unsigned int nXPos, unsigned int nYPos, unsigned int nHe m_nPlaybackHeight( 0 ), m_bAllowAlternateMedia( allowAlternateMedia ) { + +#ifdef MAPBASE + vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_ROOT ); +#else vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_GAMEUIDLL ); +#endif SetParent( pParent ); SetVisible( false ); @@ -420,4 +425,4 @@ CON_COMMAND( playvideo_exitcommand, "Plays a video and fires and exit command wh Warning( "Unable to play video: %s\n", strFullpath ); engine->ClientCmd( pExitCommand ); } -} \ No newline at end of file +}