Follow-up 4e7cf8f

This commit is contained in:
Cahyadi Ramadhan Togihon 2013-10-06 15:56:15 +07:00
parent 4e7cf8fe47
commit b85f469bd5

View File

@ -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;
}