From db07cdc01c617b4b6c5fac385649f3de44106a36 Mon Sep 17 00:00:00 2001 From: IhateTrains Date: Tue, 10 Sep 2024 16:06:24 +0100 Subject: [PATCH] Fix characters with dangling family reference having no dynasty in CK3 (#2169) #patch --- ImperatorToCK3/CK3/Dynasties/DynastyCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImperatorToCK3/CK3/Dynasties/DynastyCollection.cs b/ImperatorToCK3/CK3/Dynasties/DynastyCollection.cs index 40570a3d9..1995fb9b6 100644 --- a/ImperatorToCK3/CK3/Dynasties/DynastyCollection.cs +++ b/ImperatorToCK3/CK3/Dynasties/DynastyCollection.cs @@ -51,7 +51,7 @@ private void CreateDynastiesForCharactersFromMinorFamilies(Imperator.World irWor Logger.Info("Creating dynasties for characters from minor families..."); var relevantImperatorCharacters = irWorld.Characters - .Where(c => c.CK3Character is not null && c.Family?.Minor == true) + .Where(c => c.CK3Character is not null && (c.Family is null || c.Family.Minor)) .OrderBy(c => c.Id) .ToArray();