mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-16 00:52:41 -05:00
Fix dppt slot species reading
Offset re-read the level value; now we just read the byte for level (always 0-100) and the species is 4 bytes afterwards
This commit is contained in:
parent
7d45b5c4fb
commit
d8bc2154ba
|
|
@ -319,8 +319,8 @@ private static EncounterSlot[] getSlots4_DPPt_G(byte[] data, ref int ofs, int nu
|
|||
|
||||
for (int i = 0; i < numslots; i++)
|
||||
{
|
||||
int level = BitConverter.ToInt32(data, ofs + i * 8);
|
||||
int species = BitConverter.ToInt32(data, ofs + i * 8);
|
||||
int level = data[ofs + i*8];
|
||||
int species = BitConverter.ToInt32(data, ofs + i*8 + 4);
|
||||
slots[i] = new EncounterSlot
|
||||
{
|
||||
LevelMax = level,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user