From: Ash Tyndall Date: Sat, 8 Oct 2011 05:38:09 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e621bfb4edf5934205815019f7ce7b4e4491c72b;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 2a5ab65..5b3f3a8 100644 --- a/scene.c +++ b/scene.c @@ -280,8 +280,7 @@ void makeMenu() { // Construct add object menu int addObjectMenu = glutCreateMenu(processObjectEvents); for ( int i = 0; addObjectSubmenu[i]; i++ ) { - char * name = { (char)i }; - glutAddSubMenu( name, addObjectSubmenu[i] ); + glutAddSubMenu( "1", addObjectSubmenu[i] ); }