diff --git a/src/frontend/hud.cpp b/src/frontend/hud.cpp index 66a5ea6b..5b6e93b0 100644 --- a/src/frontend/hud.cpp +++ b/src/frontend/hud.cpp @@ -356,7 +356,7 @@ void HudRenderer::update(bool visible) { } if (!inventoryOpen && Events::scroll) { int slot = player->getChosenSlot(); - slot = (slot + Events::scroll) % 10; + slot = (slot - Events::scroll) % 10; if (slot < 0) { slot += 10; }