summaryrefslogtreecommitdiff
path: root/src/graph_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-04-11 21:26:02 +0200
committerPeterN <peter@fuzzle.org>2019-04-13 12:49:18 +0100
commit2db88953e7e0e521b4514f356038eeb36b299dff (patch)
tree0f058052645065811ffa58deaee2e592583587b5 /src/graph_gui.cpp
parentb9b34f676b96e29ec91711bd7ff74d2492424655 (diff)
downloadopenttd-2db88953e7e0e521b4514f356038eeb36b299dff.tar.xz
Codechange: use std::sort() in GUIList
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: