src/water_cmd.cpp
changeset 7497 40e457c0a8ac
parent 7494 ab05bad37410
child 7507 36bb5300a128
equal deleted inserted replaced
7496:49cec492627b 7497:40e457c0a8ac
   656 
   656 
   657 				if (v->z_pos != airport->delta_z + 1) return;
   657 				if (v->z_pos != airport->delta_z + 1) return;
   658 			}
   658 			}
   659 			Vehicle *u;
   659 			Vehicle *u;
   660 
   660 
   661 			if (v->type != VEH_AIRCRAFT) v = GetFirstVehicleInChain(v);
   661 			if (v->type != VEH_AIRCRAFT) v = v->First();
   662 			u = v;
   662 			u = v;
   663 
   663 
   664 			/* crash all wagons, and count passengers */
   664 			/* crash all wagons, and count passengers */
   665 			BEGIN_ENUM_WAGONS(v)
   665 			BEGIN_ENUM_WAGONS(v)
   666 				if (IsCargoInClass(v->cargo_type, CC_PASSENGERS)) pass += v->cargo.Count();
   666 				if (IsCargoInClass(v->cargo_type, CC_PASSENGERS)) pass += v->cargo.Count();