(no commit message)
authorAsh Tyndall <[email protected]>
Sat, 8 Oct 2011 03:25:21 +0000 (11:25 +0800)
committerAsh Tyndall <[email protected]>
Sat, 8 Oct 2011 03:25:21 +0000 (11:25 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 3e7e8da..d593db6 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -250,7 +250,9 @@ void makeMenu() {
   // Create the overmenu\r
   int objectMenu = glutCreateMenu(processObjectEvents);\r
   for ( int i = 0; objectSubmenu[i]; i++ ) {\r
-    glutAddSubMenu( (i + 1) * 10, objectSubmenu[i] );\r
+    char name[2];\r
+    sprintf(name,"%d",(i + 1) * 10);\r
+    glutAddSubMenu( name, objectSubmenu[i] );\r
   }\r
 \r
   glutAddSubMenu("Objects", objectMenu);\r

UCC git Repository :: git.ucc.asn.au