(svn r17526) -Codechange: use QSortT instead of qsort for sorting the language list in the network GUI

This commit is contained in:
rubidium
2009-09-13 17:38:07 +00:00
parent 263952f557
commit fd04d4ed00
3 changed files with 6 additions and 7 deletions

View File

@@ -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 {