src/depot_gui.cpp
changeset 9213 67e8293d4f9a
parent 9203 082fbf0500c4
child 9225 1158928d629a
equal deleted inserted replaced
9212:5f56a631a668 9213:67e8293d4f9a
   501 		return MODE_START_STOP;
   501 		return MODE_START_STOP;
   502 	}
   502 	}
   503 
   503 
   504 	void DepotClick(int x, int y)
   504 	void DepotClick(int x, int y)
   505 	{
   505 	{
   506 		GetDepotVehiclePtData gdvp;
   506 		GetDepotVehiclePtData gdvp = { NULL, NULL };
   507 		Vehicle *v = NULL;
   507 		Vehicle *v = NULL;
   508 		DepotGUIAction mode = this->GetVehicleFromDepotWndPt(x, y, &v, &gdvp);
   508 		DepotGUIAction mode = this->GetVehicleFromDepotWndPt(x, y, &v, &gdvp);
   509 
   509 
   510 		/* share / copy orders */
   510 		/* share / copy orders */
   511 		if (_thd.place_mode != VHM_NONE && mode != MODE_ERROR) {
   511 		if (_thd.place_mode != VHM_NONE && mode != MODE_ERROR) {