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:49 +02:00
1 parent ade7db9004
commit 24e5b1d84b
1 file changed
+1 -1
+1 -1
View File
@@ -10060,7 +10060,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;
}