summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/station.cpp')
-rw-r--r--src/station.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/station.cpp b/src/station.cpp
index dc50b4f10..04c5a66bd 100644
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -571,3 +571,8 @@ Money AirportMaintenanceCost(Owner owner)
/* 3 bits fraction for the maintenance cost factor. */
return total_cost >> 3;
}
+
+bool StationCompare::operator() (const Station *lhs, const Station *rhs) const
+{
+ return lhs->index < rhs->index;
+}