int startNum = i*11 - (i-1);\r
for ( int j = startNum - 1; j < (startNum+9); j++ ) {\r
if ( j == menuEntriesSize ) break; // Detect if we've reached the end of the array\r
- glutAddMenuEntry( menuEntries[j], j );\r
+ glutAddMenuEntry( menuEntries[j], j + 1 );\r
}\r
}\r
\r