diff options
author | peter1138 <peter1138@openttd.org> | 2009-01-13 20:43:53 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-01-13 20:43:53 +0000 |
commit | 4585d9785da5d93e9b7d99daa02f4e6aa6dd21c3 (patch) | |
tree | 4f3979be8f4424ca7b44a2e80ec1de5621a609c9 /src/station_func.h | |
parent | f70b4c5ae448e8775883007af1baa32084957f73 (diff) | |
download | openttd-4585d9785da5d93e9b7d99daa02f4e6aa6dd21c3.tar.xz |
(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.
Diffstat (limited to 'src/station_func.h')
-rw-r--r-- | src/station_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<Station*, 1> 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(); |