Browse Source

Fix crash while parsing command menu with unsupported custom button.

Same as 3e0214ee12
fix-cwd-path
Andrey Akhmichin 2 years ago
parent
commit
c506f2a582
No known key found for this signature in database
GPG Key ID: BE329F7886439BC8
  1. 2
      cl_dll/vgui_TeamFortressViewport.cpp

2
cl_dll/vgui_TeamFortressViewport.cpp

@ -841,7 +841,7 @@ int TeamFortressViewport::CreateCommandMenu( const char *menuFile, int direction
{ {
gEngfuncs.Con_Printf( "Too many menus in %s past '%s'\n", menuFile, szLastButtonText ); gEngfuncs.Con_Printf( "Too many menus in %s past '%s'\n", menuFile, szLastButtonText );
} }
else else if( pButton )
{ {
// Create the menu // Create the menu
m_pCommandMenus[m_iNumMenus] = CreateSubMenu( pButton, m_pCurrentCommandMenu, iButtonY ); m_pCommandMenus[m_iNumMenus] = CreateSubMenu( pButton, m_pCurrentCommandMenu, iButtonY );

Loading…
Cancel
Save