Use cart function when storing from cart

This commit is contained in:
jsn 2024-11-22 02:28:36 +08:00 committed by Ibrahim Zidan
parent 842d4d6a31
commit 327e69c8d6
No known key found for this signature in database
GPG key ID: 0F0A43C7FE4C7B9A

View file

@ -447,8 +447,8 @@ static int storage_storageaddfromcart(struct map_session_data *sd, struct storag
nullpo_ret(stst = storage->get_settings(stor->uid));
if ((sd->storage.access & STORAGE_ACCESS_PUT) == 0) {
clif->delitem(sd, index, amount, DELITEM_NORMAL);
clif->additem(sd, index, amount, 0);
clif->cart_delitem(sd, index, amount);
clif->cart_additem(sd, index, amount, 0);
return 0;
}