mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof
This commit is contained in:
parent
d3761d97eb
commit
8c5f64ae56
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue