mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r20009) -Fix [FS#3893]: sign sorting was unstable
This commit is contained in:
parent
e2445aca4a
commit
9582da99c0
|
@ -65,7 +65,9 @@ struct SignList {
|
||||||
GetString(buf_cache, STR_SIGN_NAME, lastof(buf_cache));
|
GetString(buf_cache, STR_SIGN_NAME, lastof(buf_cache));
|
||||||
}
|
}
|
||||||
|
|
||||||
return strcasecmp(buf, buf_cache);
|
int r = strcasecmp(buf, buf_cache);
|
||||||
|
|
||||||
|
return r != 0 ? r : ((*a)->index - (*b)->index);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SortSignsList()
|
void SortSignsList()
|
||||||
|
|
Loading…
Reference in New Issue