changeset 2992:c6e2baf59594 draft

(svn r3568) - Fix: constantizing side-effect of qsort in r3563. Ugly? Yes. Makes MSVC happy? Yes.
author Darkvater <Darkvater@openttd.org>
date Mon, 06 Feb 2006 23:28:07 +0000
parents 4993a64be87e
children 377300834bbf
files players.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/players.c
+++ b/players.c
@@ -1024,7 +1024,7 @@
 
 	/* 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;