|
@@ -234,8 +234,10 @@ int storage_storageadd(struct map_session_data* sd, int index, int amount)
|
|
|
|
|
|
if( storage_additem(sd,&sd->status.inventory[index],amount) == 0 )
|
|
|
pc_delitem(sd,index,amount,0,4,LOG_TYPE_STORAGE);
|
|
|
- else
|
|
|
+ else {
|
|
|
clif_dropitem(sd,index,0);
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
|
|
|
return 1;
|
|
|
}
|
|
@@ -551,6 +553,10 @@ int storage_guild_storageadd(struct map_session_data* sd, int index, int amount)
|
|
|
|
|
|
if(guild_storage_additem(sd,stor,&sd->status.inventory[index],amount)==0)
|
|
|
pc_delitem(sd,index,amount,0,4,LOG_TYPE_GSTORAGE);
|
|
|
+ else {
|
|
|
+ clif_dropitem(sd,index,0);
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
|
|
|
return 1;
|
|
|
}
|