Null check the right thing in CopyBodyPartProperties
This commit is contained in:
parent
9b0363aec2
commit
b6169227e7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue