summaryrefslogtreecommitdiff
path: root/src/gui/shortcut/itemshortcut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shortcut/itemshortcut.cpp')
-rw-r--r--src/gui/shortcut/itemshortcut.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/shortcut/itemshortcut.cpp b/src/gui/shortcut/itemshortcut.cpp
index 7139fd74e..8c091f8c1 100644
--- a/src/gui/shortcut/itemshortcut.cpp
+++ b/src/gui/shortcut/itemshortcut.cpp
@@ -160,8 +160,8 @@ void ItemShortcut::useItem(const size_t index) const
if (itemId < SPELL_MIN_ID)
{
const Item *const item = inv->findItem(itemId, itemColor);
- if ((item != nullptr) && (item->getQuantity() != 0))
- PlayerInfo::useEquipItem(item, Sfx_true);
+ if (item != nullptr && item->getQuantity() != 0)
+ PlayerInfo::useEquipItem(item, 0, Sfx_true);
}
else if (itemId < SKILL_MIN_ID && (spellManager != nullptr))
{