summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-04-01 18:30:00 +0000
committerterkhen <terkhen@openttd.org>2010-04-01 18:30:00 +0000
commite1c68f1b2c303617894070ba499c277635af2639 (patch)
treea4c2b7a5f69aefbf6ba1903b7e9493662a837800 /src/roadveh_cmd.cpp
parent08eba44922f2c621b478ce4c6f97398721809e37 (diff)
downloadopenttd-e1c68f1b2c303617894070ba499c277635af2639.tar.xz
(svn r19533) -Fix [FS#3720]: Vehicle details window did not resize correctly after refitting a road vehicle to a longer variant.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 1b99b18c9..caacfadc6 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1770,7 +1770,7 @@ CommandCost CmdRefitRoadVeh(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
RoadVehicle *front = v->First();
RoadVehUpdateCache(front);
if (_settings_game.vehicle.roadveh_acceleration_model != AM_ORIGINAL) front->CargoChanged();
- SetWindowDirty(WC_VEHICLE_DETAILS, front->index);
+ InvalidateWindowData(WC_VEHICLE_DETAILS, front->index);
SetWindowDirty(WC_VEHICLE_DEPOT, front->tile);
InvalidateWindowClassesData(WC_ROADVEH_LIST, 0);
} else {