summaryrefslogtreecommitdiff
path: root/src/vehicle_cmd.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-08-19 13:44:41 +0000
committeryexo <yexo@openttd.org>2010-08-19 13:44:41 +0000
commit85740a02832c9c474833f929b4464eba06be66d3 (patch)
tree9e10d3039ec55bce24ceebffd0c4c949be1f45ee /src/vehicle_cmd.cpp
parent16be24e13acf17a3292b490196d301b5b1aa1056 (diff)
downloadopenttd-85740a02832c9c474833f929b4464eba06be66d3.tar.xz
(svn r20559) -Fix [FS#4045]: make sure that all vehicles are build in the most northern depot/hangar tile
Diffstat (limited to 'src/vehicle_cmd.cpp')
-rw-r--r--src/vehicle_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp
index 45b6e3674..e5b5df6cd 100644
--- a/src/vehicle_cmd.cpp
+++ b/src/vehicle_cmd.cpp
@@ -137,7 +137,7 @@ CommandCost CmdBuildVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
v->unitnumber = unit_num;
v->value = value.GetCost();
- InvalidateWindowData(WC_VEHICLE_DEPOT, tile);
+ InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
InvalidateWindowClassesData(GetWindowClassForVehicleType(type), 0);
SetWindowDirty(WC_COMPANY, _current_company);
if (IsLocalCompany()) {