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
1 changed files with 1 additions and 1 deletions

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;