From 23ef2073c81f3c98075161ebd0ee6084967aefc5 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Fri, 2 Feb 2024 16:43:30 +0100 Subject: Fix dragging lum (first item) out of the spells window. --- src/gui/widgets/spellshortcutcontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit v1.2.3-70-g09d2