summaryrefslogtreecommitdiff
path: root/rail_gui.c
diff options
context:
space:
mode:
authorCelestar <Celestar@openttd.org>2005-01-20 10:31:59 +0000
committerCelestar <Celestar@openttd.org>2005-01-20 10:31:59 +0000
commit39ccf08e1fd1ac400bc9d2af92c723372b339115 (patch)
tree2dc5257624d4c5dbf40cbb3fc7117ab777ee5637 /rail_gui.c
parentfea6e43b7c983281476ba1b69f54a8a33feb66a9 (diff)
downloadopenttd-39ccf08e1fd1ac400bc9d2af92c723372b339115.tar.xz
(svn r1575) -Fix: Forgot to exit the construction phase for the waypoint window (if
you have newgrfs loaded)
Diffstat (limited to 'rail_gui.c')
-rw-r--r--rail_gui.c7
1 files changed, 5 insertions, 2 deletions
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;
}
}