Mercurial > hg > openttd
changeset 5739:c1f9a00926f0 draft
(svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof
author | KUDr <KUDr@openttd.org> |
---|---|
date | Fri, 19 Jan 2007 22:41:50 +0000 |
parents | 888d020b82f3 |
children | 6e2237ad85a4 |
files | src/waypoint.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -356,7 +356,7 @@ /* 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;