summaryrefslogtreecommitdiff
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
commit5775115ebaaf94cbb916507b88246a13f95a5b87 (patch)
tree3ecd20385bc72cc89cccb92a694117b42b6bbc24
parent23bf684a5d7bb05211a21bbab6e0d23aacc8587a (diff)
downloadopenttd-5775115ebaaf94cbb916507b88246a13f95a5b87.tar.xz
(svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof
-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;