From 9854f434fd8e4894c3071e8f7dc5f77bc728f047 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 5 May 2016 17:12:55 +0300 Subject: In npc inventory allow add by button add item to next free slot. --- src/gui/windows/npcdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); } } -- cgit v1.2.3-70-g09d2