(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 23bf684a5d
commit 5775115eba

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;