diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/storage.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/storage.c b/src/map/storage.c index 53b5bc7..25ecd90 100644 --- a/src/map/storage.c +++ b/src/map/storage.c @@ -251,9 +251,11 @@ int storage_storageadd(struct map_session_data *sd,int index,int amount) return 0; // log_tostorage(sd, index, 0); - if(storage_additem(sd,stor,&sd->status.inventory[index],amount)==0) + if(storage_additem(sd,stor,&sd->status.inventory[index],amount)==0) { // remove item from inventory + pc_unequipinvyitem(sd,index,1); pc_delitem(sd,index,amount,0); + } return 1; } |