diff options
author | darkvater <darkvater@openttd.org> | 2004-09-12 21:49:38 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-09-12 21:49:38 +0000 |
commit | e295e46e3eccd58626ce2b02aab24b96c025636b (patch) | |
tree | 849dacad3729ee4bbd27669505a1932ca301592d /graph_gui.c | |
parent | 1b498bca57457a5f46cc43baef225687e312692b (diff) | |
download | openttd-e295e46e3eccd58626ce2b02aab24b96c025636b.tar.xz |
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron)
-CodeLayout: Remove trailing spaces and Windows linebreaks
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)); } |