Crash in charts
Closed this issue · 1 comments
Algorithman commented
If you select a chart of a fort (with quite something going on) and then switch to World->Historical Figures Remaining, it crashes if there are some historical figures of UNKNOWN race.
ChartPanel.cs line 495:
var hfKilled = World.Events.OfType().GroupBy(death => death.HistoricalFigure.Race).Select(hf => new { Race = hf.Key, Count = hf.Count() }).OrderBy(hf => hfTotals.IndexOf(hfTotals.First(hf1 => hf1.Race == hf.Race))).ToList();
Kromtec commented
Thanks, to order this list wasn't even necessary in the first place.