diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-05 17:12:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-05 17:12:55 +0300 |
commit | 9854f434fd8e4894c3071e8f7dc5f77bc728f047 (patch) | |
tree | 14b8f2a4f30ee69e587fc2b12848e1a75ea67ebc /src/gui/windows/npcdialog.cpp | |
parent | 1827d37f96cb985d455cbca73a1fb3b685722dc4 (diff) | |
download | manaplus-9854f434fd8e4894c3071e8f7dc5f77bc728f047.tar.gz manaplus-9854f434fd8e4894c3071e8f7dc5f77bc728f047.tar.bz2 manaplus-9854f434fd8e4894c3071e8f7dc5f77bc728f047.tar.xz manaplus-9854f434fd8e4894c3071e8f7dc5f77bc728f047.zip |
In npc inventory allow add by button add item to next free slot.
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r-- | src/gui/windows/npcdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp index e89700e5b..7369e1314 100644 --- a/src/gui/windows/npcdialog.cpp +++ b/src/gui/windows/npcdialog.cpp @@ -626,13 +626,13 @@ void NpcDialog::action(const ActionEvent &event) #ifdef EATHENA_SUPPORT if (mInputState == NPC_INPUT_ITEM_CRAFT) { - if (mComplexInventory->addVirtualItem(item, 0, 1)) + if (mComplexInventory->addVirtualItem(item, -1, 1)) inventory->virtualRemove(item, 1); } else #endif { - if (mInventory->addVirtualItem(item, 0, 1)) + if (mInventory->addVirtualItem(item, -1, 1)) inventory->virtualRemove(item, 1); } } |