Skip to content

Commit

Permalink
Fixed bug in CP_CvarList which prevented the linked cvar from
Browse files Browse the repository at this point in the history
being updated when element zero was selected.
  • Loading branch information
danij-deng committed Sep 12, 2011
1 parent 970bf17 commit 0b2cc9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/ui_panel.c
Expand Up @@ -735,8 +735,8 @@ void CP_CvarList(ui_object_t *ob)
cvar_t* var = Con_FindVariable(list->data);
int value = ((uidata_listitem_t *) list->items)[list->selection].data;

if(0 >= list->selection) return;
if(NULL == var) return;
if(list->selection < 0) return;
if(!var) return;

CVar_SetInteger2(var, value, SVF_WRITE_OVERRIDE);
}
Expand Down

0 comments on commit 0b2cc9c

Please sign in to comment.