diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/shoplistbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp index 7d23189d1..1dd58532e 100644 --- a/src/gui/widgets/shoplistbox.cpp +++ b/src/gui/widgets/shoplistbox.cpp @@ -188,7 +188,7 @@ void ShopListBox::mouseMoved(gcn::MouseEvent &event) return; } - const int index = (event.getY() + mPadding) / mRowHeight; + const int index = (event.getY() - mPadding) / mRowHeight; if (index < 0 || index >= mShopItems->getNumberOfElements()) { |