summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2010-12-04 08:38:02 +0000
committerplanetmaker <planetmaker@openttd.org>2010-12-04 08:38:02 +0000
commitf6aa80c6175a998d67377a6759fb8a54fc829fd0 (patch)
tree4d05d23cb13cd1f8561de85652aa10b7c8c6a058 /src
parentb250888aa36185aa7c84871d9fe0f5c291e10da3 (diff)
downloadopenttd-f6aa80c6175a998d67377a6759fb8a54fc829fd0.tar.xz
(svn r21374) -Fix: Purchases lists were not invalidated when using 'resetengines'
Diffstat (limited to 'src')
-rw-r--r--src/engine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 4bccb97b0..64ff67040 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -601,6 +601,9 @@ void StartupEngines()
c->avail_railtypes = GetCompanyRailtypes(c->index);
c->avail_roadtypes = GetCompanyRoadtypes(c->index);
}
+
+ /* Invalidate any open purchase lists */
+ InvalidateWindowClassesData(WC_BUILD_VEHICLE);
}
static void AcceptEnginePreview(EngineID eid, CompanyID company)