# HG changeset patch # User peter1138 # Date 1211826327 0 # Node ID ba811bffb84c7119192d9637881e1d755597f535 # Parent ca9fd65fa4b7aa2424c2140f010c88072b3164bc (svn r13270) -Codechange: There is no need to clear lists in the window constructor diff --git a/src/group_gui.cpp b/src/group_gui.cpp --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -217,12 +217,10 @@ case VEH_AIRCRAFT: this->sorting = &_sorting.aircraft; break; } - this->vehicles.Clear(); this->vehicles.sort_type = this->sorting->criteria; this->vehicles.flags = VL_REBUILD | (this->sorting->order ? VL_DESC : VL_NONE); this->vehicles.resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS; // Set up resort timer - this->groups.Clear(); this->groups.flags = VL_REBUILD | VL_NONE; this->groups.resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS; // Set up resort timer diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -806,7 +806,6 @@ PlayerID player = (PlayerID)GB(this->window_number, 0, 8); this->vehicle_type = (VehicleType)GB(this->window_number, 11, 5); - this->vehicles.Clear(); this->caption_color = player; /* Hide the widgets that we will not use in this window