From: Ash Tyndall Date: Sat, 8 Oct 2011 05:55:38 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=a1f68d35f178d86f004d9b3f97193afbcdf9a866;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 4ab75ea..1dee027 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 + 9); + sprintf(name, "%d-%d", i*11 - (i-1), i*11 - (i-1) + 9); glutAddSubMenu( name, addObjectSubmenu[i] ); }