Skip to content

Commit

Permalink
Game Menu: Locate color mixer widget's ColorBox by id when updating
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Dec 30, 2011
1 parent 06ca39f commit 3965495
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doomsday/plugins/common/src/hu_menu.c
Expand Up @@ -3362,8 +3362,7 @@ int Hu_MenuActionSetActivePage(mn_object_t* obj, mn_actionid_t action, void* par
int Hu_MenuUpdateColorWidgetColor(mn_object_t* obj, mn_actionid_t action, void* paramaters)
{
float value = MNSlider_Value(obj);
/// \fixme Find object by id.
mn_object_t* cboxMix = &ColorWidgetMenu.objects[0];
mn_object_t* cboxMix = MN_MustFindObjectOnPage(&ColorWidgetMenu, 0, MNF_ID0);

if(MNA_MODIFIED != action) return 1;

Expand Down

0 comments on commit 3965495

Please sign in to comment.