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

diff --git a/scene.c b/scene.c
index 53b3187..49a8a61 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -262,7 +262,7 @@ int makeSubmenuFromArray( const char *menuEntries[], unsigned int menuEntriesSiz
   }\r
 \r
   int mainMenu = glutCreateMenu(callback);\r
-  for ( int i = 0; i < menuNumber; i++ ) {\r
+  for ( int i = 0; i < menuNumber - 1; i++ ) {\r
     char name[10]; // buffer to hold name\r
     int startNum = i*11 - (i-1);\r
     int endNum = startNum + 9;\r

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