X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_structure.c;fp=src%2Ffg_structure.c;h=d50063f52a44d43ea6489a20118724c3ecf49d92;hb=8f7014249e5f2b352569c7b22aa190125aeef9ab;hp=be9d1ce5e9975f5a037394b67b3eb73fa013d14b;hpb=108280c6d8ec2f11b6151bda3118ff17d801b2d7;p=freeglut diff --git a/src/fg_structure.c b/src/fg_structure.c index be9d1ce..d50063f 100644 --- a/src/fg_structure.c +++ b/src/fg_structure.c @@ -533,7 +533,7 @@ static void fghcbMenuByID( SFG_Menu *menu, return; /* Check the menu's ID. */ - if( menu->ID == (int)(enumerator->data) ) + if( menu->ID == *( int *)(enumerator->data) ) { enumerator->found = GL_TRUE; enumerator->data = menu; @@ -552,7 +552,7 @@ SFG_Menu* fgMenuByID( int menuID ) /* This is easy and makes use of the menus enumeration defined above */ enumerator.found = GL_FALSE; - enumerator.data = (void *)menuID; + enumerator.data = (void *)&menuID; fgEnumMenus( fghcbMenuByID, &enumerator ); if( enumerator.found )