From fc5b3b90b46feb745a9c353f1b640dfc11d5ab60 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 19 May 2024 17:44:08 +0100 Subject: [PATCH] Remove incorrect assertion as temporary fix for #692 See: https://github.com/OpenTTD/OpenTTD/issues/12651 --- src/autoreplace_cmd.cpp | 1 - 1 file changed, 1 deletion(-) 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;