Skip to content

Commit

Permalink
Use cart function when storing from cart
Browse files Browse the repository at this point in the history
  • Loading branch information
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
Expand Up @@ -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;
}

Expand Down

0 comments on commit c8947dc

Please sign in to comment.