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 | 6c0aa3a11037354d2d0e1e251cc5bfef5bd01686 (patch) | |
tree | 2b7ada8917e9cb1d6ba06ce403acf3f02b857eb4 | |
parent | ebfe7f60003e0894ed2fa4f8d1d8a431ed1c5482 (diff) | |
download | openttd-6c0aa3a11037354d2d0e1e251cc5bfef5bd01686.tar.xz |
(svn r3568) - Fix: constantizing side-effect of qsort in r3563. Ugly? Yes. Makes MSVC happy? Yes.
-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; |