ruaaa
This commit is contained in:
parent
39afbb5f63
commit
2102bc2091
@ -356,8 +356,7 @@ impl PySR1Ship {
|
|||||||
fn get_mass(&self) -> f64 {
|
fn get_mass(&self) -> f64 {
|
||||||
let mut mass = 0_f64;
|
let mut mass = 0_f64;
|
||||||
for part_data in self.ship.parts.iter() {
|
for part_data in self.ship.parts.iter() {
|
||||||
let part_type = self.part_list.get_part_type(&part_data.part_type_id).unwrap();
|
self.part_list.get_part_type(&part_data.part_type_id).map(|part_type| mass += part_type.mass);
|
||||||
mass += part_type.mass
|
|
||||||
}
|
}
|
||||||
mass
|
mass
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user