summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/waypoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index b8eacc383..dd1366e10 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -356,7 +356,7 @@ Station *ComposeWaypointStation(TileIndex tile)
/* instead of 'static Station stat' use byte array to avoid Station's destructor call upon exit. As
* a side effect, the station is not constructed now. */
- static byte stat_raw[sizeof Station];
+ static byte stat_raw[sizeof(Station)];
static Station &stat = *(Station*)stat_raw;
stat.train_tile = stat.xy = wp->xy;