diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 4dc660589..5336a8ae4 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1850,6 +1850,9 @@ void CChannelList::paintItem(int pos, const bool firstpaint) iscurrent = SameTP((*chanlist)[curr]); } + if(selected >= (*chanlist).size()) + selected = (*chanlist).size()-1; + if (curr == selected) { color = COL_MENUCONTENTSELECTED_TEXT; bgcolor = COL_MENUCONTENTSELECTED_PLUS_0;