diff options
author | KUDr <KUDr@openttd.org> | 2007-01-19 22:41:50 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2007-01-19 22:41:50 +0000 |
commit | 5775115ebaaf94cbb916507b88246a13f95a5b87 (patch) | |
tree | 3ecd20385bc72cc89cccb92a694117b42b6bbc24 | |
parent | 23bf684a5d7bb05211a21bbab6e0d23aacc8587a (diff) | |
download | openttd-5775115ebaaf94cbb916507b88246a13f95a5b87.tar.xz |
(svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof
-rw-r--r-- | src/waypoint.cpp | 2 |
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; |