From 7cd566b4ace5fe1e16949169d2688d443e4e8aed Mon Sep 17 00:00:00 2001 From: oy Date: Mon, 13 Jun 2016 10:19:17 +0200 Subject: [PATCH] fixed mistake in listbox code #1463 --- src/game/client/components/menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 2f38b91dc..a371fb564 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -871,7 +871,7 @@ CMenus::CListboxItem CMenus::UiDoListboxNextRow() if(Item.m_Rect.y+Item.m_Rect.h > gs_ListBoxOriginalView.y) { - if(Item.m_HitRect.y < Item.m_HitRect.y) // clip the selection + if(Item.m_HitRect.y < gs_ListBoxOriginalView.y) // clip the selection { Item.m_HitRect.h -= gs_ListBoxOriginalView.y-Item.m_HitRect.y; Item.m_HitRect.y = gs_ListBoxOriginalView.y;