From f2318c35db0bd59d4c334d0b280e1f1ae810df87 Mon Sep 17 00:00:00 2001
From: Peter Nelson <peter1138@openttd.org>
Date: Tue, 10 Jun 2025 18:03:05 +0100
Subject: [PATCH] Fix 0455627d16: Order backups were no longer created when
 selling vehicles. (#14352)

---
 src/vehicle_cmd.cpp | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp
index ba13b43cdf..75baae2051 100644
--- a/src/vehicle_cmd.cpp
+++ b/src/vehicle_cmd.cpp
@@ -247,13 +247,6 @@ CommandCost CmdSellVehicle(DoCommandFlags flags, VehicleID v_id, bool sell_chain
 
 	if (!front->IsStoppedInDepot()) return CommandCost(STR_ERROR_TRAIN_MUST_BE_STOPPED_INSIDE_DEPOT + front->type);
 
-	/* Can we actually make the order backup, i.e. are there enough orders? */
-	if (backup_order && front->orders != nullptr && !front->orders->IsShared()) {
-		/* Only happens in exceptional cases when there aren't enough orders anyhow.
-		 * Thus it should be safe to just drop the orders in that case. */
-		backup_order = false;
-	}
-
 	if (v->type == VEH_TRAIN) {
 		ret = CmdSellRailWagon(flags, v, sell_chain, backup_order, client_id);
 	} else {