Handle parentless weapon (handbook)

This commit is contained in:
Tyfon
2024-08-24 12:04:21 -07:00
parent 135fb316e1
commit ce6ea3fcc1

View File

@@ -487,7 +487,7 @@ public static class WeaponModdingPatches
}
Item rootItem = itemAddress.GetRootItemNotEquipment();
if (rootItem is not Weapon weapon)
if (rootItem is not Weapon weapon || weapon.CurrentAddress == null)
{
return true;
}