(no commit message)
authorAsh Tyndall <[email protected]>
Sat, 8 Oct 2011 06:55:17 +0000 (14:55 +0800)
committerAsh Tyndall <[email protected]>
Sat, 8 Oct 2011 06:55:17 +0000 (14:55 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 553092e..602dc49 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -268,7 +268,7 @@ int makeSubmenuFromArray( const char *menuEntries[], unsigned int menuEntriesSiz
     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

UCC git Repository :: git.ucc.asn.au