1
0
Fork 0

(svn r13593) -Fix [FS#2095](r13524): sorting by cargo capacity was broken

release/0.7
smatz 2008-06-20 20:40:47 +00:00
parent fd49e1c379
commit c406ea35ec
1 changed files with 1 additions and 1 deletions

View File

@ -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;