From: Ash Tyndall Date: Sat, 8 Oct 2011 06:47:45 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=9166122b3c6a85c235df749e2a9aba0fa8e1c20e;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 49a8a61..53b3187 100644 --- a/scene.c +++ b/scene.c @@ -262,7 +262,7 @@ int makeSubmenuFromArray( const char *menuEntries[], unsigned int menuEntriesSiz } int mainMenu = glutCreateMenu(callback); - for ( int i = 0; i < menuNumber - 1; i++ ) { + for ( int i = 0; i < menuNumber; i++ ) { char name[10]; // buffer to hold name int startNum = i*11 - (i-1); int endNum = startNum + 9;