From: Ash Tyndall Date: Sat, 8 Oct 2011 06:38:29 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=a4f6bea87a20c5da469fb115a8fb0db20c5ffb18;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index f4467cc..a4b70d6 100644 --- a/scene.c +++ b/scene.c @@ -247,7 +247,7 @@ void processLightEvents(int id) { } int makeSubmenuFromArray( const char *menuEntries[], void *callback ) { - int menuEntriesSize = 54;//sizeof(menuEntries) / sizeof(menuEntries[0]); + int menuEntriesSize = sizeof(menuEntries) / sizeof(menuEntries[0]); int menuNumber = menuEntriesSize / 10 + 1; int submenuObjects[menuNumber-1];