mirror of
https://github.com/kwsch/NHSE.git
synced 2026-09-07 10:45:15 -05:00
Clamp read of encrypted uints
guards against corrupt values? Closes #55
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user