mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
Fix PKM conversion prompt order (#2285)
This commit is contained in:
parent
5da9051431
commit
7e553155e1
|
|
@ -243,15 +243,15 @@ private static PKM ConvertPKM(PKM pk, Type PKMType, Type fromType, out string co
|
|||
int toFormat = toName.Last() - '0';
|
||||
if (fromFormat > toFormat && fromFormat != 2)
|
||||
{
|
||||
comment = string.Format(MsgPKMConvertFailFormat, toName, fromName);
|
||||
comment = string.Format(MsgPKMConvertFailFormat, fromName, toName);
|
||||
return null;
|
||||
}
|
||||
|
||||
var pkm = ConvertPKM(pk, PKMType, toFormat, ref comment);
|
||||
|
||||
comment = pkm == null
|
||||
? string.Format(MsgPKMConvertFailFormat, toName, fromName)
|
||||
: string.Format(MsgPKMConvertSuccess, toName, fromName);
|
||||
? string.Format(MsgPKMConvertFailFormat, fromName, toName)
|
||||
: string.Format(MsgPKMConvertSuccess, fromName, toName);
|
||||
return pkm;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user