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:
Asdow
2026-05-28 17:44:21 +03:00
parent b949189881
commit 8b3e417872
+1 -1
View File
@@ -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 )
{