summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-02-06 23:28:07 +0000
committerDarkvater <darkvater@openttd.org>2006-02-06 23:28:07 +0000
commit6c0aa3a11037354d2d0e1e251cc5bfef5bd01686 (patch)
tree2b7ada8917e9cb1d6ba06ce403acf3f02b857eb4
parentebfe7f60003e0894ed2fa4f8d1d8a431ed1c5482 (diff)
downloadopenttd-6c0aa3a11037354d2d0e1e251cc5bfef5bd01686.tar.xz
(svn r3568) - Fix: constantizing side-effect of qsort in r3563. Ugly? Yes. Makes MSVC happy? Yes.
-rw-r--r--players.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/players.c b/players.c
index 5ce773ca4..b35ab0e29 100644
--- a/players.c
+++ b/players.c
@@ -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;