mirror of https://github.com/OpenTTD/OpenTTD
(svn r3568) - Fix: constantizing side-effect of qsort in r3563. Ugly? Yes. Makes MSVC happy? Yes.
parent
ebfe7f6000
commit
6c0aa3a110
|
@ -1024,7 +1024,7 @@ int8 SaveHighScoreValueNetwork(void)
|
||||||
|
|
||||||
/* Sort all active players with the highest score first */
|
/* Sort all active players with the highest score first */
|
||||||
FOR_ALL_PLAYERS(p) if (p->is_active) pl[count++] = p;
|
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;
|
uint i;
|
||||||
|
|
Loading…
Reference in New Issue