Follow-up 4e7cf8f
This commit is contained in:
parent
4e7cf8fe47
commit
b85f469bd5
@ -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 )
|
if( storage_additem(sd,&sd->status.inventory[index],amount) == 0 )
|
||||||
pc_delitem(sd,index,amount,0,4,LOG_TYPE_STORAGE);
|
pc_delitem(sd,index,amount,0,4,LOG_TYPE_STORAGE);
|
||||||
else
|
else {
|
||||||
clif_dropitem(sd,index,0);
|
clif_dropitem(sd,index,0);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
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)
|
if(guild_storage_additem(sd,stor,&sd->status.inventory[index],amount)==0)
|
||||||
pc_delitem(sd,index,amount,0,4,LOG_TYPE_GSTORAGE);
|
pc_delitem(sd,index,amount,0,4,LOG_TYPE_GSTORAGE);
|
||||||
|
else {
|
||||||
|
clif_dropitem(sd,index,0);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user