1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 18:39:10 +00:00

(svn r13291) -Fix (r13266): qsort passed wrong sizeof data

This commit is contained in:
2008-05-27 15:30:51 +00:00
parent f7a9c4f522
commit 0ce9343fb6
3 changed files with 4 additions and 4 deletions

View File

@@ -237,7 +237,7 @@ struct NetworkGameWindow : public QueryStringBaseWindow {
if (this->servers.Length() == 0) return;
_internal_sort_order = !!(this->servers.flags & VL_DESC);
qsort(this->servers.Begin(), this->servers.Length(), sizeof(this->servers.Begin()), ngame_sorter[this->servers.sort_type]);
qsort(this->servers.Begin(), this->servers.Length(), sizeof(*this->servers.Begin()), ngame_sorter[this->servers.sort_type]);
/* After sorting ngl->sort_list contains the sorted items. Put these back
* into the original list. Basically nothing has changed, we are only