summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/shoplistbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index b9d7e18f4..0134a64c9 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -180,7 +180,7 @@ void ShopListBox::mouseMoved(gcn::MouseEvent &event)
return;
}
- const int index = event.getY() / mRowHeight;
+ const int index = (event.getY() + mPadding) / mRowHeight;
if (index < 0 || index >= mShopItems->getNumberOfElements())
{