Skip to content

Commit

Permalink
Simplify collection initialization in CK3 World class (#1847) #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains authored Mar 17, 2024
1 parent 05edf35 commit 405aabf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ImperatorToCK3/CK3/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public World(Imperator.World impWorld, Configuration config) {
if (config.StaticDeJure) {
Logger.Info("Setting static de jure kingdoms and empires...");

Title.LandedTitles overrideTitles = new();
Title.LandedTitles overrideTitles = [];
overrideTitles.LoadStaticTitles();
Logger.Debug("Carving titles...");
LandedTitles.CarveTitles(overrideTitles);
Expand Down Expand Up @@ -597,7 +597,7 @@ private void HandleIcelandAndFaroeIslands(Configuration config) {
UsePaganRulers();
} else {
Logger.Info("Giving Iceland and Faroe Islands to Papar...");
namePool = new Queue<string>(new[] { "Canann", "Petair", "Fergus" });
namePool = new Queue<string>(["Canann", "Petair", "Fergus"]);
}
break;
default:
Expand Down

0 comments on commit 405aabf

Please sign in to comment.