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:
@@ -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
|
||||
|
Reference in New Issue
Block a user