Skip to content

Commit

Permalink
Fix issue with newer ESI imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoeppner committed Dec 23, 2022
1 parent 175c21b commit 5734d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/XmlGenerator/Datafiles/Geography.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ private static IEnumerable<SerializableAgent> ExportAgents(IHasLongID srcStation
ID = agent.ID,
Level = agent.Level,
Quality = agent.Quality,
Name = Database.InvNamesTable[agent.ID].Name,
DivisionName = Database.CrpNPCDivisionsTable[agent.DivisionID].DivisionName,
Name = Database.InvNamesTable.Where(n => n.ID == agent.ID).FirstOrDefault()?.Name ?? "",
DivisionName = Database.CrpNPCDivisionsTable.Where(d => d.ID == agent.DivisionID).FirstOrDefault()?.DivisionName ?? "",
AgentType = Database.AgtAgentTypesTable[agent.AgentTypeID].AgentType,
ResearchSkillID = Database.AgtResearchAgentsTable.Any(x => x.ID == agent.ID)
? Database.AgtResearchAgentsTable[agent.ID].ResearchSkillID
Expand Down

0 comments on commit 5734d3f

Please sign in to comment.