diff options
author | Darkvater <Darkvater@openttd.org> | 2006-02-06 23:28:07 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-02-06 23:28:07 +0000 |
commit | db01f5b852166aa837b8145b47e78f54ed8395fa (patch) | |
tree | 2b7ada8917e9cb1d6ba06ce403acf3f02b857eb4 /players.c | |
parent | c2c00a7ffa3ef061824823e102cba178a93720db (diff) | |
download | openttd-db01f5b852166aa837b8145b47e78f54ed8395fa.tar.xz |
(svn r3568) - Fix: constantizing side-effect of qsort in r3563. Ugly? Yes. Makes MSVC happy? Yes.
Diffstat (limited to 'players.c')
-rw-r--r-- | players.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1024,7 +1024,7 @@ int8 SaveHighScoreValueNetwork(void) /* Sort all active players with the highest score first */ FOR_ALL_PLAYERS(p) if (p->is_active) pl[count++] = p; - qsort(pl, count, sizeof(pl[0]), HighScoreSorter); + qsort((Player*)pl, count, sizeof(pl[0]), HighScoreSorter); { uint i; |