summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-05-26 18:25:27 +0000
committerpeter1138 <peter1138@openttd.org>2008-05-26 18:25:27 +0000
commit0434e83e918568276fe5302afe9579e24ca0b64c (patch)
tree472bbf140747c817be5e2519d4a2331044805c28 /src
parentc3dd9d864e724893a4f409578e1a7d6a33f7c483 (diff)
downloadopenttd-0434e83e918568276fe5302afe9579e24ca0b64c.tar.xz
(svn r13270) -Codechange: There is no need to clear lists in the window constructor
Diffstat (limited to 'src')
-rw-r--r--src/group_gui.cpp2
-rw-r--r--src/vehicle_gui.cpp1
2 files changed, 0 insertions, 3 deletions
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
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 1a9a44b42..c0b02d823 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -806,7 +806,6 @@ struct VehicleListWindow : public Window, public VehicleListBase {
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