diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp index 713307b426..13f254abc5 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -778,7 +778,6 @@ static CommandCost ReplaceChain(Vehicle **chain, DoCommandFlag flags, bool wagon /* Sell superfluous new vehicles that could not be inserted. */ if (cost.Succeeded() && wagon_removal) { - assert(Train::From(new_head)->gcache.cached_total_length <= _settings_game.vehicle.max_train_length * TILE_SIZE); for (auto it = std::next(std::begin(replacements)); it != std::end(replacements); ++it) { Vehicle *wagon = it->new_veh; if (wagon == nullptr) continue;