Fix hgss sound slots species reading

2 bytes is enough for species ID
for hgss the species ID are stored every 2 bytes instead of 4
bytes(dppt)
This commit is contained in:
wwwwwwzx 2017-03-26 02:43:11 -07:00
parent 1edde07418
commit 7ebdaf3098

View File

@ -380,7 +380,7 @@ private static IEnumerable<EncounterSlot> getSlots4_G_Replace(byte[] data, ref i
if (baseSlot.LevelMin <= 0)
continue;
int species = BitConverter.ToInt32(data, ofs + i * slotSize);
int species = BitConverter.ToUInt16(data, ofs + i * slotSize);
if (species <= 0)
continue;