summaryrefslogtreecommitdiff
path: root/src/terraform_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/terraform_gui.cpp')
-rw-r--r--src/terraform_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp
index c41b2ac56..026d663f6 100644
--- a/src/terraform_gui.cpp
+++ b/src/terraform_gui.cpp
@@ -638,7 +638,7 @@ static void ResetLandscapeConfirmationCallback(Window *w, bool confirmed)
FOR_ALL_BASE_STATIONS(st) {
/* There can be buoys, remove them */
if (IsBuoyTile(st->xy)) DoCommand(st->xy, 0, 0, DC_EXEC | DC_BANKRUPT, CMD_LANDSCAPE_CLEAR);
- if ((st->facilities & ~FACIL_WAYPOINT) == 0) delete st;
+ if (!st->IsInUse()) delete st;
}
MarkWholeScreenDirty();