summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-05-27 15:30:51 +0000
committerpeter1138 <peter1138@openttd.org>2008-05-27 15:30:51 +0000
commit44dd8955d16c08054887879b6ac0ae6adc60cdcb (patch)
tree9bb45306cdeda641795854a342238bdd4f6e4b58 /src/industry_gui.cpp
parent1272c559919009017bdbc329f34a0dc706e8277a (diff)
downloadopenttd-44dd8955d16c08054887879b6ac0ae6adc60cdcb.tar.xz
(svn r13291) -Fix (r13266): qsort passed wrong sizeof data
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index d8857f6e1..b6069424c 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -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;
}