summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index f142389f7..8c16ab960 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -1377,7 +1377,6 @@ CommandCost CmdSellRailWagon(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (flags & DC_EXEC) {
first = UnlinkWagon(v, first);
DeleteDepotHighlightOfVehicle(v);
- RemoveVehicleFromGroup(v);
delete v;
}
}