diff options
Diffstat (limited to 'graph_gui.c')
-rw-r--r-- | graph_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graph_gui.c b/graph_gui.c index 0562e333a..35ac932d3 100644 --- a/graph_gui.c +++ b/graph_gui.c @@ -1016,8 +1016,8 @@ static StringID GetPerformanceTitleFromValue(uint v) } static int CDECL _perf_hist_comp(const void *elem1, const void *elem2 ) { - Player *p1 = *(Player**)elem1; - Player *p2 = *(Player**)elem2; + const Player *p1 = *(const Player* const *)elem1; + const Player *p2 = *(const Player* const *)elem2; int32 v = p2->old_economy[1].performance_history - p1->old_economy[1].performance_history; return (v!=0) | (v >> (sizeof(int32)*8-1)); } |