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
commit0ce9343fb6e4094e68c5b7fd6c74547ff02f2ecb (patch)
tree9bb45306cdeda641795854a342238bdd4f6e4b58 /src/industry_gui.cpp
parentf7a9c4f522ed0b929627f68012484a501677546d (diff)
downloadopenttd-0ce9343fb6e4094e68c5b7fd6c74547ff02f2ecb.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;
}