diff options
author | peter1138 <peter1138@openttd.org> | 2008-05-27 15:30:51 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-05-27 15:30:51 +0000 |
commit | 44dd8955d16c08054887879b6ac0ae6adc60cdcb (patch) | |
tree | 9bb45306cdeda641795854a342238bdd4f6e4b58 /src/network/network_gui.cpp | |
parent | 1272c559919009017bdbc329f34a0dc706e8277a (diff) | |
download | openttd-44dd8955d16c08054887879b6ac0ae6adc60cdcb.tar.xz |
(svn r13291) -Fix (r13266): qsort passed wrong sizeof data
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index c3787e33d..5661b2f03 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -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 |