diff --git a/src/ui.cpp b/src/ui.cpp index fb1c076070b41..d8a540aa10cb5 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -137,7 +137,7 @@ void uilist_impl::draw_controls() std::string description; if( !parent.footer_text.empty() ) { description = parent.footer_text; - } else if( parent.selected >= -1 ) { + } else if( parent.selected >= 0 ) { description = parent.entries[parent.selected].desc; } cataimgui::draw_colored_text( description );