From: Ash Tyndall Date: Sat, 8 Oct 2011 04:58:08 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=affad0a1a7013e715d80153c2b3768541784c185;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index a1b52b3..c09ac01 100644 --- a/scene.c +++ b/scene.c @@ -230,6 +230,10 @@ void makeMenu() { int numMenus = objectSize/10 + 1; int objectSubmenu[numMenus]; + for( int i = 0; objectSubmenu[i]; i++ ) { + objectSubmenu[i] = 0; + } + // Create the n-(n+10) menus for ( int i = 0; i < numMenus; i++ ) {