Skip to content
Snippets Groups Projects
Commit 6a627c03 authored by Ed86's avatar Ed86
Browse files

split GetRelevantBodyPartRecord return in 2 rows so it easier to find out...

split GetRelevantBodyPartRecord return in 2 rows so it easier to find out which .Single() causes error
parent ba98ba20
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,9 @@ namespace rjw
return null;
}
return pawn?.RaceProps.body.GetPartsWithDef(std.appliedOnFixedBodyParts.Single()).Single();
BodyPartDef target = std.appliedOnFixedBodyParts.Single();
return pawn?.RaceProps.body.GetPartsWithDef(target).Single();
//return pawn?.RaceProps.body.GetPartsWithDef(std.appliedOnFixedBodyParts.Single()).Single();
}
public static bool is_wasting_away(Pawn p)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment