From 3ed1442e055fdc5217378fba14d8003009b048a2 Mon Sep 17 00:00:00 2001 From: terkhen Date: Sat, 6 Mar 2010 13:03:17 +0000 Subject: (svn r19348) -Add: Allow to sort road vehicles by power and by power vs running cost at the engine preview window. --- src/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/settings.cpp') 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; -- cgit v1.2.3-54-g00ecf