fix buffer overflow when opening "Advanced Color Options"

idk if this is the intended thing, but works fine
This commit is contained in:
alufolie91 committed 2026-09-02 14:40:40 +02:00
1 parent 763a9c6329
commit a714366517
1 file changed
+1 -1
+1 -1
View File
@@ -10059,7 +10059,7 @@ static void M_DrawColorMenu(void)
for (max = currentMenu->numitems; max > 0; max--)
{
if (currentMenu->menuitems[max].status != IT_DISABLED && currentMenu->menuitems[max-1].alphaKey*2 + tempcentery <= (currentMenu->y + 2*scrollareaheight))
if (currentMenu->menuitems[max-1].status != IT_DISABLED && currentMenu->menuitems[max-1].alphaKey*2 + tempcentery <= (currentMenu->y + 2*scrollareaheight))
break;
}