mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-05 03:24:39 +00:00
Fix crash while parsing command menu with unsupported custom button.
Same as 3e0214ee12
This commit is contained in:
parent
9a4eddfba9
commit
c506f2a582
@ -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…
x
Reference in New Issue
Block a user