Skip to content

Commit

Permalink
fix for fleet members in wormholes causing fleet tracking issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BitBaboonSteve committed Oct 17, 2021
1 parent e549f86 commit c7c17a6
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions EVEData/LocalCharacter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -822,10 +822,22 @@ private async Task UpdateFleetInfo()

EVEData.System es = EveManager.Instance.GetEveSystemFromID(esifm.SolarSystemId);


fm.Name = EveManager.Instance.GetCharacterName(esifm.CharacterId);
fm.Location = es.Name;
fm.Region = es.Region;

fm.CharacterID = esifm.CharacterId;

if (es == null)
{
fm.Location = "";
fm.Region= "";
}
else
{
fm.Location = es.Name;
fm.Region = es.Region;

}
if (EveManager.Instance.ShipTypes.ContainsKey(esifm.ShipTypeId.ToString()))
{
fm.ShipType = EveManager.Instance.ShipTypes[esifm.ShipTypeId.ToString()];
Expand Down

0 comments on commit c7c17a6

Please sign in to comment.