File diff r12410:4bb7a12b2f71 → r12411:4ac6b3dd713f
src/waypoint.cpp
Show inline comments
 
@@ -54,13 +54,13 @@ Station *ComposeWaypointStation(TileInde
 
	/* 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 Station &stat = *(Station*)stat_raw;
 

	
 
	stat.train_tile = stat.xy = wp->xy;
 
	stat.town = Town::Get(wp->town_index);
 
	stat.town = wp->town;
 
	stat.build_date = wp->build_date;
 

	
 
	return &stat;
 
}
 

	
 
/**