summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-21 17:56:55 +0000
committerrubidium <rubidium@openttd.org>2007-09-21 17:56:55 +0000
commita6a8502ca3f762d7903768044b7ce965c229f5ff (patch)
tree322fd8601a275751d99b7131c12be1edec16edcf /src
parent2ce95b9fd06b6f4d3ce14bab8a85ef91bff718db (diff)
downloadopenttd-a6a8502ca3f762d7903768044b7ce965c229f5ff.tar.xz
(svn r11134) -Fix [FS#1238]: vehicles got removed twice from the group list when selling whole trains.
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;
}
}