From 6c0aa3a11037354d2d0e1e251cc5bfef5bd01686 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 6 Feb 2006 23:28:07 +0000 Subject: [PATCH] (svn r3568) - Fix: constantizing side-effect of qsort in r3563. Ugly? Yes. Makes MSVC happy? Yes. --- players.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/players.c b/players.c index 5ce773ca45..b35ab0e29f 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;