diff --git a/LegendsViewer/Legends/Events/EntityOverthrown.cs b/LegendsViewer/Legends/Events/EntityOverthrown.cs index fbbb4d7..6669cd0 100644 --- a/LegendsViewer/Legends/Events/EntityOverthrown.cs +++ b/LegendsViewer/Legends/Events/EntityOverthrown.cs @@ -54,7 +54,15 @@ public override string Print(bool link = true, DwarfObject pov = null) string eventString = GetYearTime(); eventString += Instigator.ToLink(link, pov, this); eventString += " toppled the government of "; - eventString += OverthrownHistoricalFigure.ToLink(link, pov, this); + try + { + eventString += OverthrownHistoricalFigure.ToLink(link, pov, this); + } + catch + { + OverthrownHistoricalFigure = new HistoricalFigure(); + eventString += OverthrownHistoricalFigure.ToLink(link, pov, this); + } eventString += " of "; eventString += Entity.ToLink(link, pov, this); if (PositionTaker != Instigator) @@ -95,4 +103,4 @@ public override string Print(bool link = true, DwarfObject pov = null) return eventString; } } -} +} \ No newline at end of file