mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-22 20:13:06 +00:00
Fixing some unneccessary exceptions.
This commit is contained in:
parent
30d64a3d2d
commit
ffe297b895
3 changed files with 5 additions and 2 deletions
|
@ -2770,7 +2770,7 @@ namespace PKHeX
|
|||
}
|
||||
else if ((species == 521) && (gender == 1)) // Unfezant
|
||||
{
|
||||
file = file = "_" + species.ToString() + "f";
|
||||
file = "_" + species.ToString() + "f";
|
||||
}
|
||||
}
|
||||
if (species == 0)
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace PKHeX
|
|||
{
|
||||
if (m_parent.init)
|
||||
{
|
||||
if (InvokeRequired)
|
||||
if (InvokeRequired && IsHandleCreated)
|
||||
Invoke((MethodInvoker)delegate(){Close();});
|
||||
else
|
||||
Close();
|
||||
|
|
|
@ -214,6 +214,9 @@ namespace PKHeX
|
|||
internal static int getIndex(ComboBox cb)
|
||||
{
|
||||
int val = 0;
|
||||
if (cb.SelectedValue == null)
|
||||
return 0;
|
||||
|
||||
try { val = Util.ToInt32(cb.SelectedValue.ToString()); }
|
||||
catch
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue