summaryrefslogtreecommitdiff
path: root/src/map/storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/storage.c')
-rw-r--r--src/map/storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/storage.c b/src/map/storage.c
index e717ba2..9a3f366 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -270,7 +270,7 @@ int storage_storageadd (struct map_session_data *sd, int index, int amount)
if (storage_additem (sd, stor, &sd->status.inventory[index], amount) == 0)
{
// remove item from inventory
- pc_unequipinvyitem (sd, index, 1);
+ pc_unequipinvyitem (sd, index, 0);
pc_delitem (sd, index, amount, 0);
}