From: Ash Tyndall Date: Sat, 8 Oct 2011 06:46:38 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f31e0c062dbd02ba349aefbbb5dee0a9eb90ef69;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 53b3187..49a8a61 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; i++ ) { + for ( int i = 0; i < menuNumber - 1; i++ ) { char name[10]; // buffer to hold name int startNum = i*11 - (i-1); int endNum = startNum + 9;