summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index e00753c30..f483b4d74 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -742,11 +742,11 @@ struct BuildRailToolbarWindow : Window {
this->DisableWidget(RTW_REMOVE);
this->InvalidateWidget(RTW_REMOVE);
- delete FindWindowById(WC_BUILD_SIGNAL, 0);
- delete FindWindowById(WC_BUILD_STATION, 0);
- delete FindWindowById(WC_BUILD_DEPOT, 0);
- delete FindWindowById(WC_SELECT_STATION, 0);
- delete FindWindowById(WC_BUILD_BRIDGE, 0);
+ DeleteWindowById(WC_BUILD_SIGNAL, 0);
+ DeleteWindowById(WC_BUILD_STATION, 0);
+ DeleteWindowById(WC_BUILD_DEPOT, 0);
+ DeleteWindowById(WC_SELECT_STATION, 0);
+ DeleteWindowById(WC_BUILD_BRIDGE, 0);
}
virtual void OnPlacePresize(Point pt, TileIndex tile)