From 0434e83e918568276fe5302afe9579e24ca0b64c Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 26 May 2008 18:25:27 +0000 Subject: (svn r13270) -Codechange: There is no need to clear lists in the window constructor --- src/group_gui.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/group_gui.cpp') diff --git a/src/group_gui.cpp b/src/group_gui.cpp index f3b3b161b..f8fbe75cf 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -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 -- cgit v1.2.3-54-g00ecf