fix buffer overflow when opening "Advanced Color Options"
idk if this is the intended thing, but works fine
This commit is contained in:
1 parent
ade7db9004
commit
24e5b1d84b
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user