(svn r13291) -Fix (r13266): qsort passed wrong sizeof data

This commit is contained in:
peter1138
2008-05-27 15:30:51 +00:00
parent 1272c55991
commit 44dd8955d1
3 changed files with 4 additions and 4 deletions

View File

@@ -841,7 +841,7 @@ static void SortIndustriesList(GUIIndustryList *sl)
_internal_sort_order = (sl->sort_type << 1) | (sl->flags & VL_DESC);
_last_industry = NULL; // used for "cache" in namesorting
qsort((void*)sl->Begin(), sl->Length(), sizeof(sl->Begin()), &GeneralIndustrySorter);
qsort((void*)sl->Begin(), sl->Length(), sizeof(*sl->Begin()), &GeneralIndustrySorter);
sl->flags &= ~VL_RESORT;
}