Check for null pawn cum when merging cum
This commit is contained in:
parent
2350cf7355
commit
eb0d40ea1a
|
@ -902,7 +902,7 @@ namespace RJW_Menstruation
|
||||||
bool merged = false;
|
bool merged = false;
|
||||||
if (!cums.NullOrEmpty()) foreach (Cum cum in cums)
|
if (!cums.NullOrEmpty()) foreach (Cum cum in cums)
|
||||||
{
|
{
|
||||||
if (cum.pawn.Equals(cummer))
|
if (cum.pawn?.Equals(cummer) ?? false)
|
||||||
{
|
{
|
||||||
cum.MergeWithCum(volume, fertility);
|
cum.MergeWithCum(volume, fertility);
|
||||||
merged = true;
|
merged = true;
|
||||||
|
@ -917,7 +917,7 @@ namespace RJW_Menstruation
|
||||||
bool merged = false;
|
bool merged = false;
|
||||||
if (!cums.NullOrEmpty()) foreach (Cum cum in cums)
|
if (!cums.NullOrEmpty()) foreach (Cum cum in cums)
|
||||||
{
|
{
|
||||||
if (cum.pawn.Equals(cummer))
|
if (cum.pawn?.Equals(cummer) ?? false)
|
||||||
{
|
{
|
||||||
cum.MergeWithCum(volume, fertility);
|
cum.MergeWithCum(volume, fertility);
|
||||||
merged = true;
|
merged = true;
|
||||||
|
@ -954,7 +954,7 @@ namespace RJW_Menstruation
|
||||||
bool merged = false;
|
bool merged = false;
|
||||||
if (!cums.NullOrEmpty()) foreach (Cum cum in cums)
|
if (!cums.NullOrEmpty()) foreach (Cum cum in cums)
|
||||||
{
|
{
|
||||||
if (cum.notcum && cum.pawn.Equals(cummer) && cum.notcumLabel.Equals(notcumlabel))
|
if (cum.notcum && (cum.pawn?.Equals(cummer) ?? false) && cum.notcumLabel.Equals(notcumlabel))
|
||||||
{
|
{
|
||||||
cum.MergeWithFluid(volume, decayresist, filthdef);
|
cum.MergeWithFluid(volume, decayresist, filthdef);
|
||||||
merged = true;
|
merged = true;
|
||||||
|
@ -969,7 +969,7 @@ namespace RJW_Menstruation
|
||||||
bool merged = false;
|
bool merged = false;
|
||||||
if (!cums.NullOrEmpty()) foreach (Cum cum in cums)
|
if (!cums.NullOrEmpty()) foreach (Cum cum in cums)
|
||||||
{
|
{
|
||||||
if (cum.notcum && cum.pawn.Equals(cummer) && cum.notcumLabel.Equals(notcumlabel))
|
if (cum.notcum && (cum.pawn?.Equals(cummer) ?? false) && cum.notcumLabel.Equals(notcumlabel))
|
||||||
{
|
{
|
||||||
cum.MergeWithFluid(volume, decayresist, filthdef);
|
cum.MergeWithFluid(volume, decayresist, filthdef);
|
||||||
merged = true;
|
merged = true;
|
||||||
|
|
Loading…
Reference in New Issue