summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-02-02 16:43:30 +0100
committerJesusalva Jesusalva <jesusalva@themanaworld.org>2024-02-09 13:33:57 +0000
commit23ef2073c81f3c98075161ebd0ee6084967aefc5 (patch)
tree487b3c1414e2a47ed2c68cf41c5eb1f5156f112f /src
parentc92f71514c54641340b7c11f95357a9a4d35b27e (diff)
downloadmv-23ef2073c81f3c98075161ebd0ee6084967aefc5.tar.gz
mv-23ef2073c81f3c98075161ebd0ee6084967aefc5.tar.bz2
mv-23ef2073c81f3c98075161ebd0ee6084967aefc5.tar.xz
mv-23ef2073c81f3c98075161ebd0ee6084967aefc5.zip
Fix dragging lum (first item) out of the spells window.
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/spellshortcutcontainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp
index 88d3d26ef..f7ee1bdf0 100644
--- a/src/gui/widgets/spellshortcutcontainer.cpp
+++ b/src/gui/widgets/spellshortcutcontainer.cpp
@@ -232,7 +232,7 @@ void SpellShortcutContainer::mousePressed(MouseEvent &event)
if (eventButton == MouseButton::LEFT)
{
const int itemId = getItemByIndex(index);
- if (itemId > 0)
+ if (itemId >= 0)
mSpellClicked = true;
event.consume();
}