fix voucher entry with multiple factions

This commit is contained in:
Florian Stinglmayr 2022-02-12 19:04:23 +01:00
parent 08e342991c
commit 47d3fd778e

View File

@ -28,6 +28,10 @@ namespace EDJournal {
string single_faction = JSON.Value<string>("Faction");
if (single_faction != null) {
Factions.Add(single_faction);
if (!FactionBounties.ContainsKey(single_faction)) {
FactionBounties[single_faction] = 0;
}
FactionBounties[single_faction] += Amount;
}
}