summaryrefslogtreecommitdiff
path: root/src/dock_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dock_gui.cpp')
-rw-r--r--src/dock_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp
index b79f5d36a..f806d22e2 100644
--- a/src/dock_gui.cpp
+++ b/src/dock_gui.cpp
@@ -241,10 +241,10 @@ struct BuildDocksToolbarWindow : Window {
{
this->RaiseButtons();
- 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_STATION, 0);
+ DeleteWindowById(WC_BUILD_DEPOT, 0);
+ DeleteWindowById(WC_SELECT_STATION, 0);
+ DeleteWindowById(WC_BUILD_BRIDGE, 0);
}
virtual void OnPlacePresize(Point pt, TileIndex tile_from)