diff --git a/LittleWarGameClient/OverlayForm.cs b/LittleWarGameClient/OverlayForm.cs index 8546e39..33bd683 100644 --- a/LittleWarGameClient/OverlayForm.cs +++ b/LittleWarGameClient/OverlayForm.cs @@ -61,8 +61,12 @@ protected override void OnRender(D2DGraphics g) { for (int i = 0; i < overlayMessages.Count; i++) { - var notification = overlayMessages[i].Value.message; - g.DrawText($" >{notification}", D2DColor.Yellow, Font, 0, (i + 1) * 30); + try + { + var notification = overlayMessages[i].Value.message; + g.DrawText($" >{notification}", D2DColor.Yellow, Font, 0, (i + 1) * 30); + } + catch { break; } } }