diff options
Diffstat (limited to 'src/road_gui.cpp')
-rw-r--r-- | src/road_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 89d15ac72..6fd93cf8c 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -526,11 +526,11 @@ struct BuildRoadToolbarWindow : Window { this->InvalidateWidget(RTW_REMOVE); this->InvalidateWidget(RTW_ONE_WAY); - delete FindWindowById(WC_BUS_STATION, 0); - delete FindWindowById(WC_TRUCK_STATION, 0); - delete FindWindowById(WC_BUILD_DEPOT, 0); - delete FindWindowById(WC_SELECT_STATION, 0); - delete FindWindowById(WC_BUILD_BRIDGE, 0); + DeleteWindowById(WC_BUS_STATION, 0); + DeleteWindowById(WC_TRUCK_STATION, 0); + DeleteWindowById(WC_BUILD_DEPOT, 0); + DeleteWindowById(WC_SELECT_STATION, 0); + DeleteWindowById(WC_BUILD_BRIDGE, 0); } virtual void OnPlaceDrag(ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt) |