From 4585d9785da5d93e9b7d99daa02f4e6aa6dd21c3 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 13 Jan 2009 20:43:53 +0000 Subject: (svn r15073) -Fix (r15067) [FS#2532]: Default copy constructors don't necessarily do what you want. Instead of creating one, we now pass a pointer around as that avoids additional allocations. --- src/station_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/station_func.h') diff --git a/src/station_func.h b/src/station_func.h index d65f0ff07..7e548835a 100644 --- a/src/station_func.h +++ b/src/station_func.h @@ -18,7 +18,7 @@ void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius); typedef SmallVector StationList; -StationList FindStationsAroundTiles(TileIndex tile, int w_prod, int h_prod); +void FindStationsAroundTiles(TileIndex tile, int w_prod, int h_prod, StationList *stations); void ShowStationViewWindow(StationID station); void UpdateAllStationVirtCoord(); -- cgit v1.2.3-54-g00ecf