Fix jpn/kor pkm collision

OTname length is 6 in JP games and 11 in kor/eng
Thanks smileynation!

https://projectpokemon.org/home/forums/topic/41689-bug-reporting-japanese-name-of-kin-gin-version-vc-jpn
This commit is contained in:
Kurt 2017-09-24 08:36:10 -07:00
parent 496cc35f97
commit e5d7a063af

View file

@ -21,7 +21,7 @@ namespace PKHeX.Core
internal const int STRLEN_J = 6; internal const int STRLEN_J = 6;
internal const int STRLEN_U = 11; internal const int STRLEN_U = 11;
private int StringLength => Japanese ? STRLEN_J : STRLEN_U; private int StringLength => Japanese ? STRLEN_J : STRLEN_U;
public override bool Korean => otname[0] <= 0xB; public override bool Korean => !Japanese && otname[0] <= 0xB;
public override string GetString(int Offset, int Count) public override string GetString(int Offset, int Count)
{ {