From afb94c252df09f2f86186fbf6dcdf01ea2d55b12 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 13 Jan 2009 18:18:53 +0000 Subject: (svn r15067) -Fix [FS#2531]: Possible compiler bug, alleviated by using SmallVector instead of using std::set. SmallVector does everything needed anyway. --- src/station_func.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/station_func.h') diff --git a/src/station_func.h b/src/station_func.h index 4bcf3d8eb..d65f0ff07 100644 --- a/src/station_func.h +++ b/src/station_func.h @@ -13,14 +13,12 @@ #include "tile_type.h" #include "cargo_type.h" #include "vehicle_type.h" -#include +#include "core/smallvec_type.hpp" void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius); -/** A set of stations (\c const \c Station* ) */ -typedef std::set > StationSet; - -StationSet FindStationsAroundTiles(TileIndex tile, int w_prod, int h_prod); +typedef SmallVector StationList; +StationList FindStationsAroundTiles(TileIndex tile, int w_prod, int h_prod); void ShowStationViewWindow(StationID station); void UpdateAllStationVirtCoord(); -- cgit v1.2.3-54-g00ecf