Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cart function when storing from cart
Browse files Browse the repository at this point in the history
jasonch35 committed Nov 21, 2024
1 parent 4aea3a4 commit c8947dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map/storage.c
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit c8947dc

Please sign in to comment.