diff --git a/NHSE.WinForms/Editor.cs b/NHSE.WinForms/Editor.cs index 12a5eab..61a92a2 100644 --- a/NHSE.WinForms/Editor.cs +++ b/NHSE.WinForms/Editor.cs @@ -240,9 +240,16 @@ private void LoadPlayer(int index) NUD_NookMiles.Value = Math.Min(int.MaxValue, pers.NookMiles.Value); NUD_Wallet.Value = Math.Min(int.MaxValue, pers.Wallet.Value); - var photo = pers.GetPhotoData(); - var bmp = new Bitmap(new MemoryStream(photo)); - PB_Player.Image = bmp; + try + { + var photo = pers.GetPhotoData(); + PB_Player.Image = new Bitmap(new MemoryStream(photo)); + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } PlayerIndex = index; }