summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorSamuXarick <43006711+SamuXarick@users.noreply.github.com>2020-02-22 14:51:58 +0000
committerGitHub <noreply@github.com>2020-02-22 15:51:58 +0100
commitea7044a74b9b6ccf003c88dfc8ab0ca3f991a777 (patch)
treee4059239d17da2c6cf05d64f62d89c5a79bd04bf /src/station_cmd.cpp
parent0ade8b20feb10db88e5bde93252654bb82ed6d08 (diff)
downloadopenttd-ea7044a74b9b6ccf003c88dfc8ab0ca3f991a777.tar.xz
Fix f5381798: Station::GetTileArea reduced docks to a single tile (#8014)
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 385072b95..060e5a0d5 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -400,13 +400,10 @@ void Station::GetTileArea(TileArea *ta, StationType type) const
case STATION_DOCK:
case STATION_OILRIG:
*ta = this->docking_station;
- break;
+ return;
default: NOT_REACHED();
}
-
- ta->w = 1;
- ta->h = 1;
}
/**