From a288e4d82ff85819aa49061d66ee7e0cfd87e802 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 27 Jun 2009 21:06:58 +0000 Subject: (svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays. --- src/depot_gui.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/depot_gui.cpp') 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); -- cgit v1.2.3-70-g09d2