mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
Fix C/XD pkm loading
Thanks ArcticLoveBunny!
This commit is contained in:
parent
92b39e9da5
commit
6196a8101a
1 changed files with 2 additions and 0 deletions
|
@ -300,6 +300,8 @@ namespace PKHeX.Core
|
|||
case 2: // no encryption
|
||||
return;
|
||||
case 3:
|
||||
if (pkm.Length == PKX.SIZE_3CSTORED || pkm.Length == PKX.SIZE_3XSTORED)
|
||||
return; // no encryption for C/XD
|
||||
ushort chk = 0;
|
||||
for (int i = 0x20; i < PKX.SIZE_3STORED; i += 2)
|
||||
chk += BitConverter.ToUInt16(pkm, i);
|
||||
|
|
Loading…
Reference in a new issue