mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Guard against illegal array access
Hovering mouse over an option long enough that the popup text appears and scrolling to last page with mouse wheel would run into assertion error in gprintfdirty() Assert(pFontString!=NULL); if the option was one of the last ones that didn't have a text box in the last option page.
This commit is contained in:
@@ -1822,7 +1822,7 @@ void HandleHighLightedText( BOOLEAN fHighLight )
|
||||
bLastRegion = -1;
|
||||
}
|
||||
|
||||
if( bHighLight != -1 )
|
||||
if( bHighLight != -1 && toggle_box_array[bHighLight] != -1)
|
||||
{
|
||||
if( bHighLight < OPT_FIRST_COLUMN_TOGGLE_CUT_OFF )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user