summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}
}