diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/gui/itemshortcutcontainer.cpp | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2008-04-28 Dennis Friis <peavey@placid.dk> + + * src/gui/itemshortcutcontainer.cpp: Dont allow dragging of empty + placeholders. + 2008-04-29 Bjørn Lindeijer <bjorn@lindeijer.nl> * src/game.cpp, src/gui/chat.h, src/gui/chat.cpp: Fixed issue with diff --git a/src/gui/itemshortcutcontainer.cpp b/src/gui/itemshortcutcontainer.cpp index 50f45dee..b15c8983 100644 --- a/src/gui/itemshortcutcontainer.cpp +++ b/src/gui/itemshortcutcontainer.cpp @@ -151,6 +151,8 @@ ItemShortcutContainer::mouseDragged(gcn::MouseEvent &event) if (index == -1) { return; } + if (itemShortcut->getItem(index) < 0) + return; Item *item = player_node->searchForItem(itemShortcut->getItem(index)); if (item) { |