From: Ash Tyndall Date: Sat, 8 Oct 2011 06:03:09 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=eb5b2a18c2e9de277fd913619afaf971e4401463;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index b78e2af..882b7cc 100644 --- a/scene.c +++ b/scene.c @@ -283,7 +283,7 @@ void makeMenu() { // Construct add object menu int addObjectMenu = glutCreateMenu(processObjectEvents); - 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); sprintf(name, "%d-%d", startNum, startNum + 9);