summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2011-11-14 10:42:47 +0000
committerplanetmaker <planetmaker@openttd.org>2011-11-14 10:42:47 +0000
commit9309ef58a0cd1d06bf5741289814db0fb0a9296c (patch)
tree1b5232a716fff7f1e192b36aaf4910b959b827a6 /src
parent3f7eb71b17da7840678c68953729aff156cc500b (diff)
downloadopenttd-9309ef58a0cd1d06bf5741289814db0fb0a9296c.tar.xz
(svn r23211) -Fix: Invalidate build vehicle window when changing the setting for wagon speed limits
Diffstat (limited to 'src')
-rw-r--r--src/settings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index b407f39f6..3415108aa 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -768,6 +768,7 @@ static bool UpdateConsists(int32 p1)
/* Update the consist of all trains so the maximum speed is set correctly. */
if (t->IsFrontEngine() || t->IsFreeWagon()) t->ConsistChanged(true);
}
+ InvalidateWindowClassesData(WC_BUILD_VEHICLE, 0);
return true;
}