Skip to content

Commit

Permalink
VRMover: fix nullref
Browse files Browse the repository at this point in the history
  • Loading branch information
mosirnik committed Aug 23, 2021
1 parent 23d8c3f commit 074b43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KoikatuVR/VRMover.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private bool FindMaleToImpersonate(out ChaControl male)
}

var males = Manager.Character.Instance.dictEntryChara.Values
.Where(ch => ch.isActiveAndEnabled && ch.sex == 0 && ch.objTop.activeSelf && ch.visibleAll)
.Where(ch => ch.isActiveAndEnabled && ch.sex == 0 && ch.objTop?.activeSelf == true && ch.visibleAll)
.ToArray();
if (males.Length == 1)
{
Expand Down

0 comments on commit 074b43f

Please sign in to comment.