diff options
Diffstat (limited to 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rail_gui.c b/rail_gui.c index 2e86c535b..de7b62b41 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -819,7 +819,12 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) { } CheckRedrawStationCoverage(w); } break; + + case WE_DESTROY: + ResetObjectToPlace(); + break; } + } static const Widget _station_builder_widgets[] = { @@ -902,6 +907,10 @@ static void BuildTrainDepotWndProc(Window *w, WindowEvent *e) if (WP(w,def_d).close) DeleteWindow(w); return; + + case WE_DESTROY: + ResetObjectToPlace(); + break; } } |