From aa1ef6deac1555490bb560e83fe021c6deff6261 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Wed, 17 Apr 2024 14:15:19 -0300 Subject: [PATCH] fix: remove depot chest check --- src/creatures/players/player.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/creatures/players/player.cpp b/src/creatures/players/player.cpp index 8af050e0c4e..3baf289ae68 100644 --- a/src/creatures/players/player.cpp +++ b/src/creatures/players/player.cpp @@ -1234,7 +1234,6 @@ std::shared_ptr Player::getDepotChest(uint32_t depotId, bool autoCre } std::shared_ptr depotChest; -#if CLIENT_VERSION >= 1100 if (depotId > 0 && depotId < 18) { depotChest = std::make_shared(ITEM_DEPOT_NULL + depotId); } else if (depotId == 18) { @@ -1244,11 +1243,6 @@ std::shared_ptr Player::getDepotChest(uint32_t depotId, bool autoCre } else { depotChest = std::make_shared(ITEM_DEPOT_XX); } -#else - if (depotId > 0 && depotId <= 20) { - depotChest = std::make_shared(ITEM_DEPOT_NULL + depotId); - } -#endif depotChests[depotId] = depotChest; return depotChest; }