(svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user