skip empty factions in secondary effects

This commit is contained in:
Florian Stinglmayr 2022-01-26 09:32:23 +01:00
parent f4bce14ad0
commit afa4866dbe

View File

@ -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,