summaryrefslogtreecommitdiff
path: root/src/station_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/station_type.h')
-rw-r--r--src/station_type.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/station_type.h b/src/station_type.h
index 495e95a08..42d64fcf8 100644
--- a/src/station_type.h
+++ b/src/station_type.h
@@ -12,9 +12,9 @@
#ifndef STATION_TYPE_H
#define STATION_TYPE_H
-#include "core/smallvec_type.hpp"
#include "core/smallstack_type.hpp"
#include "tilearea_type.h"
+#include <set>
typedef uint16 StationID;
typedef uint16 RoadStopID;
@@ -90,8 +90,12 @@ enum CatchmentArea {
static const uint MAX_LENGTH_STATION_NAME_CHARS = 32; ///< The maximum length of a station name in characters including '\0'
+struct StationCompare {
+ bool operator() (const Station *lhs, const Station *rhs) const;
+};
+
/** List of stations */
-typedef SmallVector<Station *, 2> StationList;
+typedef std::set<Station *, StationCompare> StationList;
/**
* Structure contains cached list of stations nearby. The list