From 5775115ebaaf94cbb916507b88246a13f95a5b87 Mon Sep 17 00:00:00 2001 From: KUDr Date: Fri, 19 Jan 2007 22:41:50 +0000 Subject: (svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof --- src/waypoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2