From 074b43fd4e443aaf891ec69729b080ea25f32ff0 Mon Sep 17 00:00:00 2001 From: mosirnik Date: Sun, 22 Aug 2021 09:37:03 +0900 Subject: [PATCH] VRMover: fix nullref --- KoikatuVR/VRMover.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KoikatuVR/VRMover.cs b/KoikatuVR/VRMover.cs index 0210df2..4829f64 100644 --- a/KoikatuVR/VRMover.cs +++ b/KoikatuVR/VRMover.cs @@ -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) {