Skip to content

Commit

Permalink
Fix characters with dangling family reference having no dynasty in CK3 (
Browse files Browse the repository at this point in the history
#2169) #patch
  • Loading branch information
IhateTrains authored Sep 10, 2024
1 parent e1c881c commit db07cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImperatorToCK3/CK3/Dynasties/DynastyCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit db07cdc

Please sign in to comment.