summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-05 17:12:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-05 17:12:55 +0300
commit9854f434fd8e4894c3071e8f7dc5f77bc728f047 (patch)
tree14b8f2a4f30ee69e587fc2b12848e1a75ea67ebc /src/gui/windows
parent1827d37f96cb985d455cbca73a1fb3b685722dc4 (diff)
downloadplus-9854f434fd8e4894c3071e8f7dc5f77bc728f047.tar.gz
plus-9854f434fd8e4894c3071e8f7dc5f77bc728f047.tar.bz2
plus-9854f434fd8e4894c3071e8f7dc5f77bc728f047.tar.xz
plus-9854f434fd8e4894c3071e8f7dc5f77bc728f047.zip
In npc inventory allow add by button add item to next free slot.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/npcdialog.cpp4
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);
}
}