summaryrefslogtreecommitdiff
path: root/src/station_func.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-01-13 18:18:53 +0000
committerpeter1138 <peter1138@openttd.org>2009-01-13 18:18:53 +0000
commit02bda12599ced659e5e3ff9404ff21f0ca718cd1 (patch)
treeae7816db55022acd80a77f5e646ba906e2ee9762 /src/station_func.h
parente1f64922c5acb3f2173108ca81b656266bb8b651 (diff)
downloadopenttd-02bda12599ced659e5e3ff9404ff21f0ca718cd1.tar.xz
(svn r15067) -Fix [FS#2531]: Possible compiler bug, alleviated by using SmallVector instead of using std::set. SmallVector does everything needed anyway.
Diffstat (limited to 'src/station_func.h')
-rw-r--r--src/station_func.h8
1 files changed, 3 insertions, 5 deletions
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 <set>
+#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<Station*, PoolItemIndexLess<Station> > StationSet;
-
-StationSet FindStationsAroundTiles(TileIndex tile, int w_prod, int h_prod);
+typedef SmallVector<Station*, 1> StationList;
+StationList FindStationsAroundTiles(TileIndex tile, int w_prod, int h_prod);
void ShowStationViewWindow(StationID station);
void UpdateAllStationVirtCoord();