File diff r2215:368721eb50ca → r2216:ed8d0dd67dce
window.c
Show inline comments
 
@@ -1534,7 +1534,7 @@ int GetMenuItemIndex(Window *w, int x, i
 
	if ((x -= w->left) >= 0 && x < w->width && (y -= w->top + 1) >= 0) {
 
		y /= 10;
 

	
 
		if (y < WP(w,menu_d).item_count)
 
		if (y < WP(w,menu_d).item_count && !HASBIT(WP(w,menu_d).disabled_items, y))
 
			return y;
 
	}
 
	return -1;