src/autoreplace_gui.cpp
changeset 10525 da5bc725cda4
parent 10498 f198d0a1aab7
child 10532 d95aa7f84bc8
equal deleted inserted replaced
10524:82b909f4bc5e 10525:da5bc725cda4
   247 		this->update_right = false;
   247 		this->update_right = false;
   248 		this->init_lists   = false;
   248 		this->init_lists   = false;
   249 	}
   249 	}
   250 
   250 
   251 public:
   251 public:
   252 	ReplaceVehicleWindow(const WindowDesc *desc, VehicleType vehicletype, GroupID id_g) : Window(desc, NULL, window_number)
   252 	ReplaceVehicleWindow(const WindowDesc *desc, VehicleType vehicletype, GroupID id_g) : Window(desc, window_number)
   253 	{
   253 	{
   254 		this->wagon_btnstate = true; // start with locomotives (all other vehicles will not read this bool)
   254 		this->wagon_btnstate = true; // start with locomotives (all other vehicles will not read this bool)
   255 		new (&this->list[0]) EngineList();
   255 		new (&this->list[0]) EngineList();
   256 		new (&this->list[1]) EngineList();
   256 		new (&this->list[1]) EngineList();
   257 		this->update_left   = true;
   257 		this->update_left   = true;