Skip to content

Commit

Permalink
Handle duplicate I:R characters (#1382) #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains authored Jun 13, 2023
1 parent 1c3512b commit f9448b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImperatorToCK3/Imperator/Characters/CharacterCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void LinkCountries(CountryCollection countries) {
private void RegisterKeys(Parser parser) {
parser.RegisterRegex(CommonRegexes.Integer, (reader, charIdStr) => {
var newCharacter = Character.Parse(reader, charIdStr, GenesDB);
Add(newCharacter);
AddOrReplace(newCharacter);
});
parser.IgnoreAndLogUnregisteredItems();
}
Expand Down

0 comments on commit f9448b2

Please sign in to comment.