mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-26 09:44:09 -05:00
Fix PKM conversion prompt order (#2285)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user