diff -r ae595994eb03 -r dbe2317185eb src/vehicle.cpp --- a/src/vehicle.cpp Thu May 08 13:06:12 2008 +0000 +++ b/src/vehicle.cpp Thu May 08 13:20:54 2008 +0000 @@ -2691,7 +2691,7 @@ { int length = CountVehiclesInChain(v); - uint cargo_packages_count = 1; + size_t cargo_packages_count = 1; for (const Vehicle *v_count = v; v_count != NULL; v_count=v_count->Next()) { /* Now we count how many cargo packets we need to store. * We started with an offset by one because we also need an end of array marker. */