mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Null reference check for pregnancy gizmos. It would come up in multiwomb scenarios
This commit is contained in:
parent
e18e1892ad
commit
3f739a12d9
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -48,7 +48,7 @@ namespace RJW_Menstruation
|
||||||
if (pawn.IsPregnant())
|
if (pawn.IsPregnant())
|
||||||
{
|
{
|
||||||
Hediff_BasePregnancy hediff = comp.Pregnancy;
|
Hediff_BasePregnancy hediff = comp.Pregnancy;
|
||||||
if (Utility.ShowFetusImage(hediff))
|
if (hediff != null && Utility.ShowFetusImage(hediff))
|
||||||
{
|
{
|
||||||
icon = comp.GetPregnancyIcon(hediff);
|
icon = comp.GetPregnancyIcon(hediff);
|
||||||
if (hediff is Hediff_BasePregnancy h)
|
if (hediff is Hediff_BasePregnancy h)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue