summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-05-08 20:53:02 +0000
committerDarkvater <Darkvater@openttd.org>2005-05-08 20:53:02 +0000
commitd0139bb48ff9843b9800b2d07486e27e54d0f376 (patch)
tree66e2903341c1df38e1275cd977abcde8d131a09d
parentde0c601db3a81d930dca7dd5a1355e86dcee0360 (diff)
downloadopenttd-d0139bb48ff9843b9800b2d07486e27e54d0f376.tar.xz
(svn r2283) - Fix (regression): [ 1197493 ] train_gui.c:1341: failed assertion ..., somehow RebuildVehicleList() got lost during the rewrite :P
-rw-r--r--train_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/train_cmd.c b/train_cmd.c
index dc2ec32c0..7b8d06cc5 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -935,6 +935,7 @@ int32 CmdSellRailWagon(int x, int y, uint32 flags, uint32 p1, uint32 p2)
DeleteWindowById(WC_VEHICLE_VIEW, first->index);
InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Train);
InvalidateWindow(WC_VEHICLE_DEPOT, first->tile);
+ RebuildVehicleLists();
}
switch (p2) {