aircraft_cmd.c
changeset 2568 b1fc2c980415
parent 2567 735280bafe7a
child 2574 382fd3f37604
equal deleted inserted replaced
2567:735280bafe7a 2568:b1fc2c980415
   548 		v->cargo_cap = pass;
   548 		v->cargo_cap = pass;
   549 
   549 
   550 		u = v->next;
   550 		u = v->next;
   551 		mail = (new_cid != CT_PASSENGERS) ? 0 : avi->mail_capacity;
   551 		mail = (new_cid != CT_PASSENGERS) ? 0 : avi->mail_capacity;
   552 		u->cargo_cap = mail;
   552 		u->cargo_cap = mail;
       
   553 		v->cargo_count = u->cargo_count = 0;
   553 		v->cargo_type = new_cid;
   554 		v->cargo_type = new_cid;
   554 		InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
   555 		InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
   555 	}
   556 	}
   556 
   557 
   557 	return cost;
   558 	return cost;