Skip to content

Commit

Permalink
Prevent exception while creating dynasties when a converter-generated…
Browse files Browse the repository at this point in the history
… mod is selected as one of the CK3 mods (#2070) #patch

Sentry event ID: e8422b6133144fa78a9047b602794072
  • Loading branch information
IhateTrains authored Jul 12, 2024
1 parent 04b1173 commit 09c8ee5
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 @@ -78,7 +78,7 @@ private void CreateDynastiesForCharactersFromMinorFamilies(Imperator.World irWor

// Neither character nor their father have a dynasty, so we need to create a new one.
var newDynasty = new Dynasty(ck3Character, irFamilyName, irWorld.CulturesDB, irLocDB, ck3LocDB, date);
Add(newDynasty);
AddOrReplace(newDynasty);
++createdDynastiesCount;
}

Expand Down

0 comments on commit 09c8ee5

Please sign in to comment.