mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Null check in the xenotype decider
This commit is contained in:
parent
5a17c0e72f
commit
8d0d980048
1 changed files with 2 additions and 2 deletions
|
@ -634,8 +634,8 @@ namespace RJW_Menstruation
|
||||||
}
|
}
|
||||||
XenotypeDef motherInheritableXenotype = mother?.genes?.Xenotype;
|
XenotypeDef motherInheritableXenotype = mother?.genes?.Xenotype;
|
||||||
XenotypeDef fatherInheritableXenotype = father?.genes?.Xenotype;
|
XenotypeDef fatherInheritableXenotype = father?.genes?.Xenotype;
|
||||||
if (!motherInheritableXenotype.inheritable) motherInheritableXenotype = null;
|
if (!(motherInheritableXenotype?.inheritable ?? false)) motherInheritableXenotype = null;
|
||||||
if (!fatherInheritableXenotype.inheritable) fatherInheritableXenotype = null;
|
if (!(fatherInheritableXenotype?.inheritable ?? false)) fatherInheritableXenotype = null;
|
||||||
|
|
||||||
// If they're the same (or both null)
|
// If they're the same (or both null)
|
||||||
if (motherInheritableXenotype == fatherInheritableXenotype)
|
if (motherInheritableXenotype == fatherInheritableXenotype)
|
||||||
|
|
Loading…
Reference in a new issue