From efaba07bb307174e2dc0e57b8fb60fecb14d40d5 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 8 Oct 2011 13:59:11 +0800 Subject: [PATCH] --- scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene.c b/scene.c index 80e81ff..2ea3367 100644 --- a/scene.c +++ b/scene.c @@ -276,7 +276,7 @@ void makeMenu() { addObjectSubmenu[i] = glutCreateMenu(processObjectEvents); int startNum = i*11 - (i-1); for ( int j = startNum - 1; j < (startNum+9); j++ ) { - if ( j == objectMenuEntriesSize - 1 ) break; // Detect if we've reached the end of the array + if ( j == objectMenuEntriesSize ) break; // Detect if we've reached the end of the array glutAddMenuEntry( objectMenuEntries[j], j ); } } -- 2.20.1