diff options
author | frosch <frosch@openttd.org> | 2009-06-27 21:06:58 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-06-27 21:06:58 +0000 |
commit | a288e4d82ff85819aa49061d66ee7e0cfd87e802 (patch) | |
tree | dcb119ed56cd690290a226e44feaf430ff4f14de /src/vehicle_gui.cpp | |
parent | 9b070b5405d11c74d89a747e912e627e39850f7c (diff) | |
download | openttd-a288e4d82ff85819aa49061d66ee7e0cfd87e802.tar.xz |
(svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 9d7542071..9813f8696 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -577,7 +577,6 @@ static int CDECL VehicleCargoSorter(const Vehicle * const *a, const Vehicle * co { const Vehicle *v; CargoArray diff; - 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; |