mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-27 18:14:11 -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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user