(svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof
authorKUDr
Fri, 19 Jan 2007 22:41:50 +0000
changeset 5739 5f8e8801cd1c
parent 5738 5e2281cf6258
child 5740 2a18a31fd22e
(svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof
src/waypoint.cpp
--- a/src/waypoint.cpp	Fri Jan 19 21:40:10 2007 +0000
+++ b/src/waypoint.cpp	Fri Jan 19 22:41:50 2007 +0000
@@ -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;