summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-20 18:11:22 +0000
committertron <tron@openttd.org>2004-12-20 18:11:22 +0000
commit7875eb7c6480ba7d6620e916a0ae4f7e9d23b3da (patch)
tree6c9d7d6c08b49689e69c4dd5f9eee4ea5ac68a66
parentb9f2fd358adccea028a60c150dfe643557e7ecee (diff)
downloadopenttd-7875eb7c6480ba7d6620e916a0ae4f7e9d23b3da.tar.xz
(svn r1189) Fix vehicle list update glitch when moving waggons in depots
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 389141d46..28203b21f 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -732,7 +732,7 @@ int32 CmdMoveRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
}
InvalidateWindow(WC_VEHICLE_DEPOT, src_head->tile);
- InvalidateWindow(WC_TRAINS_LIST, _current_player);
+ RebuildVehicleLists();
}
return 0;