Skip to content

Commit

Permalink
Fix exception when christianity_religion is not found in CK3 (#2116) …
Browse files Browse the repository at this point in the history
…#patch

Sentry event ID: b600839a66f24f06a6e837a16e27efb2
  • Loading branch information
IhateTrains authored Aug 31, 2024
1 parent 5209bae commit 59505b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImperatorToCK3/CK3/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ private void HandleIcelandAndFaroeIslands(Configuration config) {
break;
case < 874:
faithCandidates = new OrderedSet<string> { "insular_celtic", "catholic", "orthodox" };
var christianFaiths = Religions["christianity_religion"].Faiths;
var christianFaiths = Religions.TryGetValue("christianity_religion", out var christianityReligion) ? christianityReligion.Faiths : [];

// If there is at least one Irish Christian county, give it to the Irish Papar.
// If there is at least one Christian county of another Gaelic culture, give it to a character of this Gaelic culture.
Expand Down

0 comments on commit 59505b0

Please sign in to comment.