Changeset - r9368:fd38f645d89e
[Not reviewed]
master
0 2 0
peter1138 - 16 years ago 2008-05-26 18:25:27
peter1138@openttd.org
(svn r13270) -Codechange: There is no need to clear lists in the window constructor
2 files changed with 0 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/group_gui.cpp
Show inline comments
 
@@ -217,12 +217,10 @@ struct VehicleGroupWindow : public Windo
 
			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
 

	
src/vehicle_gui.cpp
Show inline comments
 
@@ -806,7 +806,6 @@ struct VehicleListWindow : public Window
 
		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
0 comments (0 inline, 0 general)