summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/road_cmd.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index 4b82d8eb7..0d286cb66 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -860,10 +860,8 @@ CommandCost CmdRemoveLongRoad(TileIndex start_tile, DoCommandFlag flags, uint32
cost.AddCost(ret);
had_success = true;
} else {
- last_error = ret;
-
/* Ownership errors are more important. */
- if (last_error.GetErrorMessage() == STR_ERROR_OWNED_BY) break;
+ if (last_error.GetErrorMessage() != STR_ERROR_OWNED_BY) last_error = ret;
}
}