summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-01-19 22:41:50 +0000
committerKUDr <kudr@openttd.org>2007-01-19 22:41:50 +0000
commit8c5f64ae5627dd9829a94c1f3c8304babc0559c5 (patch)
tree3ecd20385bc72cc89cccb92a694117b42b6bbc24 /src
parentd3761d97eb20d2324a4e6c1f4853941af915349b (diff)
downloadopenttd-8c5f64ae5627dd9829a94c1f3c8304babc0559c5.tar.xz
(svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof
Diffstat (limited to 'src')
-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;