From: Ash Tyndall Date: Sat, 8 Oct 2011 06:55:17 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=a80b904b2d8e211f02e0833183200cc3bebd40b7;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 ); } }