summaryrefslogtreecommitdiff
path: root/src/graph_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r--src/graph_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index 5dc565dfe..8981e2e79 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -1148,9 +1148,9 @@ private:
}
/** Sort the company league by performance history */
- static int CDECL PerformanceSorter(const Company * const *c1, const Company * const *c2)
+ static bool PerformanceSorter(const Company * const &c1, const Company * const &c2)
{
- return (*c2)->old_economy[0].performance_history - (*c1)->old_economy[0].performance_history;
+ return c2->old_economy[0].performance_history < c1->old_economy[0].performance_history;
}
public: