summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-03-06 13:03:17 +0000
committerterkhen <terkhen@openttd.org>2010-03-06 13:03:17 +0000
commit3ed1442e055fdc5217378fba14d8003009b048a2 (patch)
tree9cab13c9e8a1e18dfc8eb205b173fc84bd094153 /src/settings.cpp
parentbe3b839ded1372ad6a3802118bb70fead2ccd4ce (diff)
downloadopenttd-3ed1442e055fdc5217378fba14d8003009b048a2.tar.xz
(svn r19348) -Add: Allow to sort road vehicles by power and by power vs running cost at the engine preview window.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 2aa30d750..9826d0c3a 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -793,7 +793,7 @@ static bool RoadVehAccelerationModelChanged(int32 p1)
/* These windows show acceleration values only when realistic acceleration is on. They must be redrawn after a setting change. */
SetWindowClassesDirty(WC_ENGINE_PREVIEW);
- SetWindowClassesDirty(WC_BUILD_VEHICLE);
+ InvalidateWindowClassesData(WC_BUILD_VEHICLE, 0);
SetWindowClassesDirty(WC_VEHICLE_DETAILS);
return true;