From: Ash Tyndall Date: Sat, 8 Oct 2011 05:54:48 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=7d67d4870c708779b65675a4b6422972af08ee4a;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 64c6c70..4ab75ea 100644 --- a/scene.c +++ b/scene.c @@ -285,7 +285,7 @@ void makeMenu() { int addObjectMenu = glutCreateMenu(processObjectEvents); for ( int i = 0; addObjectSubmenu[i]; i++ ) { char name[10]; // buffer to hold name - sprintf(name, "%d-%d", i*11 - (i-1), i*11 + 8); + sprintf(name, "%d-%d", i*11 - (i-1), i*11 + 9); glutAddSubMenu( name, addObjectSubmenu[i] ); }