Skip to content

Commit

Permalink
fix: remove depot chest check
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Apr 17, 2024
1 parent 95bbc8e commit aa1ef6d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,6 @@ std::shared_ptr<DepotChest> Player::getDepotChest(uint32_t depotId, bool autoCre
}

std::shared_ptr<DepotChest> depotChest;
#if CLIENT_VERSION >= 1100
if (depotId > 0 && depotId < 18) {
depotChest = std::make_shared<DepotChest>(ITEM_DEPOT_NULL + depotId);
} else if (depotId == 18) {
Expand All @@ -1244,11 +1243,6 @@ std::shared_ptr<DepotChest> Player::getDepotChest(uint32_t depotId, bool autoCre
} else {
depotChest = std::make_shared<DepotChest>(ITEM_DEPOT_XX);
}
#else
if (depotId > 0 && depotId <= 20) {
depotChest = std::make_shared<DepotChest>(ITEM_DEPOT_NULL + depotId);
}
#endif
depotChests[depotId] = depotChest;
return depotChest;
}
Expand Down

0 comments on commit aa1ef6d

Please sign in to comment.