diff options
author | rubidium <rubidium@openttd.org> | 2009-09-13 17:38:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-13 17:38:07 +0000 |
commit | 45e3141444323e3bfb959c03686ba81303682833 (patch) | |
tree | 9abf5bf9ed0587353c390f92081527b1587885b8 /src/network | |
parent | 734edc178db2d134923ed887b17242bbce55c802 (diff) | |
download | openttd-45e3141444323e3bfb959c03686ba81303682833.tar.xz |
(svn r17526) -Codechange: use QSortT instead of qsort for sorting the language list in the network GUI
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index f8ebc382a..eae555130 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -31,6 +31,7 @@ #include "../sortlist_type.h" #include "../company_base.h" #include "../company_func.h" +#include "../core/sort_func.hpp" #include "table/strings.h" #include "../table/sprites.h" @@ -63,7 +64,7 @@ void SortNetworkLanguages() } /* Sort the strings (we don't move 'any' and the 'invalid' one) */ - qsort(&_language_dropdown[1], NETLANG_COUNT - 1, sizeof(StringID), &StringIDSorter); + QSortT(_language_dropdown, NETLANG_COUNT - 1, &StringIDSorter); } enum { |