summaryrefslogtreecommitdiff
path: root/src/waypoint.cpp
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-05-17 15:46:38 +0200
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-05-29 21:08:25 +0200
commit5799402f7a4872d03809838dd7fa01db42bbd282 (patch)
tree6b54e235c14621035b4ec7923edb93980be5f056 /src/waypoint.cpp
parent994bf19aef3dde6c9482434bdc51688f76a937ea (diff)
downloadopenttd-5799402f7a4872d03809838dd7fa01db42bbd282.tar.xz
Codechange: Rename window related DeleteXXX to match new behaviour
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r--src/waypoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index f602eee6d..db1b36b1e 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -51,7 +51,7 @@ void Waypoint::GetTileArea(TileArea *ta, StationType type) const
Waypoint::~Waypoint()
{
if (CleaningPool()) return;
- DeleteWindowById(WC_WAYPOINT_VIEW, this->index);
+ CloseWindowById(WC_WAYPOINT_VIEW, this->index);
RemoveOrderFromAllVehicles(OT_GOTO_WAYPOINT, this->index);
if (this->sign.kdtree_valid) _viewport_sign_kdtree.Remove(ViewportSignKdtreeItem::MakeWaypoint(this->index));
}