From afa4866dbe2b779303918d65f029df36637981b5 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Wed, 26 Jan 2022 09:32:23 +0100 Subject: [PATCH] skip empty factions in secondary effects --- BGS/Report.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/BGS/Report.cs b/BGS/Report.cs index 453a252..6a09a97 100644 --- a/BGS/Report.cs +++ b/BGS/Report.cs @@ -130,6 +130,13 @@ namespace EliteBGS.BGS { string faction = other; string influence = completed.GetInfluenceForFaction(faction); + /* ignore empty factions which can happen + * I assume that this denotes that you are losing REP with a superpower + */ + if (string.IsNullOrEmpty(faction)) { + continue; + } + results.Add(new InfluenceSupport() { Faction = faction, Influence = influence,