Null check the right thing in CopyBodyPartProperties

This commit is contained in:
lutepickle 2022-07-27 14:42:53 -07:00
parent 9b0363aec2
commit b6169227e7

View file

@ -193,7 +193,7 @@ namespace RJW_Menstruation
CompHediffBodyPart comp = part.TryGetComp<CompHediffBodyPart>();
CompHediffBodyPart originalComp = originalPart.TryGetComp<CompHediffBodyPart>();
if (comp != null && originalPart != null)
if (comp != null && originalComp != null)
{
// the string properties should be the same between both pawns anyways, besides the name of the owner
part.Severity = originalPart.Severity;