Skip to content

Commit

Permalink
Removed full storage checks for functions that calls storage->additem()
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonch35 committed Dec 1, 2024
1 parent 589aef4 commit a066bc3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/map/storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,6 @@ static int storage_add_from_inventory(struct map_session_data *sd, struct storag
return 0;
}

if (stor->aggregate >= stst->capacity)
return 0; // storage full

if (index < 0 || index >= sd->status.inventorySize)
return 0;

Expand Down Expand Up @@ -451,9 +448,6 @@ static int storage_storageaddfromcart(struct map_session_data *sd, struct storag
return 0;
}

if (stor->aggregate >= stst->capacity)
return 0; // storage full / storage closed

if (index < 0 || index >= MAX_CART)
return 0;

Expand Down

0 comments on commit a066bc3

Please sign in to comment.