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:
Kurt 2017-03-25 22:23:36 -07:00
parent 7d45b5c4fb
commit d8bc2154ba

View File

@ -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,