summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-06-27 21:06:58 +0000
committerfrosch <frosch@openttd.org>2009-06-27 21:06:58 +0000
commita288e4d82ff85819aa49061d66ee7e0cfd87e802 (patch)
treedcb119ed56cd690290a226e44feaf430ff4f14de /src/depot_gui.cpp
parent9b070b5405d11c74d89a747e912e627e39850f7c (diff)
downloadopenttd-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/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index f6c5117e4..6618d0b40 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -848,8 +848,6 @@ struct DepotWindow : Window {
if (v != NULL && mode == MODE_DRAG_VEHICLE) {
CargoArray capacity, loaded;
- memset(capacity, 0, sizeof(capacity));
- memset(loaded, 0, sizeof(loaded));
/* Display info for single (articulated) vehicle, or for whole chain starting with selected vehicle */
bool whole_chain = (this->type == VEH_TRAIN && _ctrl_pressed);