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

diff --git a/scene.c b/scene.c
index fdb4f07..e6dee1f 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -276,7 +276,7 @@ void makeMenu() {
     addObjectSubmenu[i] = glutCreateMenu(processObjectEvents);\r
     int startNum = i*11 - (i-1);\r
     for ( int j = startNum - 1; j < (startNum+9); j++ ) {\r
-      if ( j == objectMenuEntriesSize ) break; // Detect if we've reached the end of the array\r
+      if ( j + 1 == objectMenuEntriesSize ) break; // Detect if we've reached the end of the array\r
       glutAddMenuEntry( objectMenuEntries[j], j );\r
     }\r
   }\r

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