From 3d56c0744045a4e57e9a2e65955972c3dd2c1720 Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 20 Jun 2008 20:40:47 +0000 Subject: [PATCH] (svn r13593) -Fix [FS#2095](r13524): sorting by cargo capacity was broken --- src/vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index ceb09ea38c..bce679cfad 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;