diff options
author | smatz <smatz@openttd.org> | 2008-06-20 20:40:47 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-20 20:40:47 +0000 |
commit | c406ea35eccd7a7af576ce4d7f2adad2d9a13573 (patch) | |
tree | ac1dd57f8166453dcefc9492b1639357516b86d9 | |
parent | fd49e1c379aa520c07320d499bf6bec79d5c7931 (diff) | |
download | openttd-c406ea35eccd7a7af576ce4d7f2adad2d9a13573.tar.xz |
(svn r13593) -Fix [FS#2095](r13524): sorting by cargo capacity was broken
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index ceb09ea38..bce679cfa 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -549,7 +549,7 @@ static int CDECL VehicleCargoSorter(const Vehicle* const *a, const Vehicle* cons { const Vehicle *v; AcceptedCargo diff; - MemSetT(diff, 0); + memset(diff, 0, sizeof(diff)); /* Append the cargo of the connected weagons */ for (v = *a; v != NULL; v = v->Next()) diff[v->cargo_type] += v->cargo_cap; |