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

This commit is contained in:
peter1138
2008-05-27 15:30:51 +00:00
parent 1272c55991
commit 44dd8955d1
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