+ middle-click now empties the inventory slot properly
authorMark Holmquist <marktraceur@gmail.com>
Thu, 1 Dec 2011 23:16:41 +0000 (15:16 -0800)
committerPerttu Ahola <celeron55@gmail.com>
Fri, 2 Dec 2011 09:31:10 +0000 (11:31 +0200)
src/guiInventoryMenu.cpp

index 45733bcd9e9e2c3506716a329d4ca66c342ccdb8..d9a98b5b0a1e939744d147c9d61ed30f96b9a497 100644 (file)
@@ -386,7 +386,7 @@ bool GUIInventoryMenu::OnEvent(const SEvent& event)
                                                //ispec.actions->push_back(a);
                                                m_invmgr->inventoryAction(a);
                                                
-                                               if(list_from->getItem(m_selected_item->i)->getCount()==1)
+                                               if(list_from->getItem(m_selected_item->i)->getCount()<=amount)
                                                        source_empties = true;
                                        }
                                        // Remove selection if target was left-clicked or source