Fix PKM conversion prompt order (#2285)

This commit is contained in:
Matt 2019-04-16 13:54:29 -04:00 committed by Kurt
parent 5da9051431
commit 7e553155e1

View File

@ -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;
}