mirror of
https://github.com/kwsch/NHSE.git
synced 2026-07-17 08:42:59 -05:00
Clamp read of encrypted uints
guards against corrupt values? Closes #55
This commit is contained in:
parent
1ff26a3be7
commit
d35aab1f77
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user