From 39ccf08e1fd1ac400bc9d2af92c723372b339115 Mon Sep 17 00:00:00 2001 From: Celestar Date: Thu, 20 Jan 2005 10:31:59 +0000 Subject: (svn r1575) -Fix: Forgot to exit the construction phase for the waypoint window (if you have newgrfs loaded) --- rail_gui.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'rail_gui.c') diff --git a/rail_gui.c b/rail_gui.c index de7b62b41..c7ad76405 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -819,12 +819,11 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) { } CheckRedrawStationCoverage(w); } break; - + case WE_DESTROY: ResetObjectToPlace(); break; } - } static const Widget _station_builder_widgets[] = { @@ -978,6 +977,10 @@ static void BuildWaypointWndProc(Window *w, WindowEvent *e) if (WP(w,def_d).close) DeleteWindow(w); return; + + case WE_DESTROY: + ResetObjectToPlace(); + break; } } -- cgit v1.2.3-54-g00ecf