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
commit74671bd2c91354d2f566b54f431bb6cc2e256483 (patch)
tree66e2903341c1df38e1275cd977abcde8d131a09d
parent8d392cf5c7f404565ea017c3cf456aabccb6e288 (diff)
downloadopenttd-74671bd2c91354d2f566b54f431bb6cc2e256483.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) {