(svn r13270) -Codechange: There is no need to clear lists in the window constructor

This commit is contained in:
peter1138
2008-05-26 18:25:27 +00:00
parent 515e0fa22d
commit 4c69d11f5e
2 changed files with 0 additions and 3 deletions

View File

@@ -217,12 +217,10 @@ struct VehicleGroupWindow : public Window, public VehicleListBase {
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