diff options
author | SamuXarick <43006711+SamuXarick@users.noreply.github.com> | 2020-02-22 14:51:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 15:51:58 +0100 |
commit | ea7044a74b9b6ccf003c88dfc8ab0ca3f991a777 (patch) | |
tree | e4059239d17da2c6cf05d64f62d89c5a79bd04bf | |
parent | 0ade8b20feb10db88e5bde93252654bb82ed6d08 (diff) | |
download | openttd-ea7044a74b9b6ccf003c88dfc8ab0ca3f991a777.tar.xz |
Fix f5381798: Station::GetTileArea reduced docks to a single tile (#8014)
-rw-r--r-- | src/station_cmd.cpp | 5 |
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; } /** |