From f6aa80c6175a998d67377a6759fb8a54fc829fd0 Mon Sep 17 00:00:00 2001 From: planetmaker Date: Sat, 4 Dec 2010 08:38:02 +0000 Subject: (svn r21374) -Fix: Purchases lists were not invalidated when using 'resetengines' --- src/engine.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/engine.cpp') 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) -- cgit v1.2.3-54-g00ecf