mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Null check the right thing in CopyBodyPartProperties
This commit is contained in:
parent
9b0363aec2
commit
b6169227e7
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ namespace RJW_Menstruation
|
||||||
CompHediffBodyPart comp = part.TryGetComp<CompHediffBodyPart>();
|
CompHediffBodyPart comp = part.TryGetComp<CompHediffBodyPart>();
|
||||||
CompHediffBodyPart originalComp = originalPart.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
|
// the string properties should be the same between both pawns anyways, besides the name of the owner
|
||||||
part.Severity = originalPart.Severity;
|
part.Severity = originalPart.Severity;
|
||||||
|
|
Loading…
Reference in a new issue