Clamp read of encrypted uints

guards against corrupt values?
Closes #55
This commit is contained in:
Kurt 2020-04-05 09:04:31 -07:00
parent 1ff26a3be7
commit d35aab1f77

View File

@ -183,9 +183,9 @@ private void LoadPlayer(int index)
var pers = player.Personal;
TB_Name.Text = pers.PlayerName;
TB_TownName.Text = pers.TownName;
NUD_BankBells.Value = pers.Bank.Value;
NUD_NookMiles.Value = pers.NookMiles.Value;
NUD_Wallet.Value = pers.Wallet.Value;
NUD_BankBells.Value = Math.Min(int.MaxValue, pers.Bank.Value);
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));