mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
Safe convert current level
Dry startup can cause a crash if the field is somehow not filled in: https://projectpokemon.org/home/forums/topic/46313-pkhex-ver-180716-wont-run/
This commit is contained in:
parent
9a91619580
commit
229dc96c00
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ namespace PKHeX.WinForms.Controls
|
|||
public bool FieldsInitialized { get; private set; }
|
||||
public bool FieldsLoaded { get; private set; }
|
||||
public bool ChangingFields { get; set; }
|
||||
public int CurrentLevel => Convert.ToInt32((HaX ? MT_Level : TB_Level).Text);
|
||||
public int CurrentLevel => Util.ToInt32((HaX ? MT_Level : TB_Level).Text);
|
||||
|
||||
private GameVersion origintrack;
|
||||
private Action GetFieldsfromPKM;
|
||||
|
|
Loading…
Reference in a new issue