From 47d3fd778eafba5574b92c664e18826ff89f2791 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sat, 12 Feb 2022 19:04:23 +0100 Subject: [PATCH] fix voucher entry with multiple factions --- RedeemVoucherEntry.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RedeemVoucherEntry.cs b/RedeemVoucherEntry.cs index 5504142..d300624 100644 --- a/RedeemVoucherEntry.cs +++ b/RedeemVoucherEntry.cs @@ -28,6 +28,10 @@ namespace EDJournal { string single_faction = JSON.Value("Faction"); if (single_faction != null) { Factions.Add(single_faction); + if (!FactionBounties.ContainsKey(single_faction)) { + FactionBounties[single_faction] = 0; + } + FactionBounties[single_faction] += Amount; } }