diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-20 18:43:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-20 18:43:00 +0300 |
commit | a9877525597aa94f1d974b8f45567b4168cf6c8e (patch) | |
tree | 56673d8e770302a2846f1d1db0db1a890bba95cd /src/gui/widgets | |
parent | 2ce675592a1a96cc9960082485797045a921676d (diff) | |
download | manaplus-a9877525597aa94f1d974b8f45567b4168cf6c8e.tar.gz manaplus-a9877525597aa94f1d974b8f45567b4168cf6c8e.tar.bz2 manaplus-a9877525597aa94f1d974b8f45567b4168cf6c8e.tar.xz manaplus-a9877525597aa94f1d974b8f45567b4168cf6c8e.zip |
Remove item default parameters.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 0ea19ea59..784fc56db 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -551,7 +551,10 @@ void ItemContainer::mouseReleased(MouseEvent &event) inventory = PlayerInfo::getInventory(); const Item *const item = inventory->getItem(dragDrop.getTag()); if (item && !PlayerInfo::isItemProtected(item->getId())) - mInventory->addItem(item->getId(), 1, 1, item->getColor()); + { + mInventory->addItem(item->getId(), 1, 1, item->getColor(), + false, false); + } return; } else if (src == DRAGDROP_SOURCE_NPC) |