(svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof

This commit is contained in:
KUDr 2007-01-19 22:41:50 +00:00
parent d3761d97eb
commit 8c5f64ae56
1 changed files with 1 additions and 1 deletions

View File

@ -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;