Mercurial > hg > openttd
diff src/network/network_gui.cpp @ 13028:30e0feabeff8 draft
(svn r17526) -Codechange: use QSortT instead of qsort for sorting the language list in the network GUI
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 13 Sep 2009 17:38:07 +0000 |
parents | 8ad447b80c42 |
children | 6eb3f749890a |
line wrap: on
line diff
--- 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 @@ } /* 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 {