mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-22 06:57:42 -05: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:
@@ -71,7 +71,7 @@ private void SavePartyStats(PKM pk)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user