From a80b904b2d8e211f02e0833183200cc3bebd40b7 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 8 Oct 2011 14:55:17 +0800 Subject: [PATCH 1/1] --- scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } } -- 2.20.1