(no commit message)
authorAsh Tyndall <[email protected]>
Sat, 8 Oct 2011 05:56:50 +0000 (13:56 +0800)
committerAsh Tyndall <[email protected]>
Sat, 8 Oct 2011 05:56:50 +0000 (13:56 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 1dee027..35c458f 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -285,7 +285,8 @@ void makeMenu() {
   int addObjectMenu = glutCreateMenu(processObjectEvents);\r
   for ( int i = 0; addObjectSubmenu[i]; i++ ) {\r
     char name[10]; // buffer to hold name\r
-    sprintf(name, "%d-%d", i*11 - (i-1), i*11 - (i-1) + 9);\r
+    int startNum; i*11 - (i-1);\r
+    sprintf(name, "%d-%d", startNum, startNum + 9);\r
     glutAddSubMenu( name, addObjectSubmenu[i] );\r
   }\r
 \r

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