summaryrefslogtreecommitdiff
path: root/src/gui/list.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/list.cpp')
-rw-r--r--src/gui/list.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/list.cpp b/src/gui/list.cpp
index 2feff47..0a2a3d3 100644
--- a/src/gui/list.cpp
+++ b/src/gui/list.cpp
@@ -66,10 +66,9 @@ void gui_list_input_fn( void* ptr ) {
if( m1 ) {
if( !list->held ) {
GUI_LIST_ENTRY* e = &list->plist->data[idx];
- I32 prevval = *list->pval;
*list->pval = e->val;
- if( list->cb && prevval != *list->pval )
+ if( list->cb )
list->cb( list );
}
list->held = 1;