From: Ash Tyndall Date: Sat, 8 Oct 2011 05:53:46 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;ds=inline;h=94db297fdff85690c300d58752c4d508d737dc29;hp=e762d9f01a0a204b098aa5b580ccfc1d2f851cb1;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 4ab2ecf..e956c92 100644 --- a/scene.c +++ b/scene.c @@ -275,7 +275,7 @@ void makeMenu() { for( int i = 0; i < menuNumber; i++ ) { addObjectSubmenu[i] = glutCreateMenu(processObjectEvents); int startNum = i*11 - (i-1); - for ( int j = startNum; j < (startNum+9); j++ ) { + for ( int j = startNum - 1; j < (startNum+9); j++ ) { if ( !objectMenuEntries[j] ) break; // Detect if we've reached the end of the array glutAddMenuEntry( objectMenuEntries[j], j ); }