mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-31 19:12:21 -05:00
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:
parent
1edde07418
commit
7ebdaf3098
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user