X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=602dc49d32203abd6c444e39b81bb16f98803289;hb=a80b904b2d8e211f02e0833183200cc3bebd40b7;hp=553092eb23ea6acd8aa92b670e61d0925ab02eb1;hpb=a1385468a8cf5aea7ae2f6db5a066e30c4bc0900;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index 553092e..602dc49 100644 --- a/scene.c +++ b/scene.c @@ -268,7 +268,7 @@ int makeSubmenuFromArray( const char *menuEntries[], unsigned int menuEntriesSiz int startNum = i*11 - (i-1); for ( int j = startNum - 1; j < (startNum+9); j++ ) { if ( j == menuEntriesSize ) break; // Detect if we've reached the end of the array - glutAddMenuEntry( menuEntries[j], j ); + glutAddMenuEntry( menuEntries[j], j + 1 ); } }