From 7ebdaf30986923d4a03469ead4585cd3ed9d1cd1 Mon Sep 17 00:00:00 2001 From: wwwwwwzx Date: Sun, 26 Mar 2017 02:43:11 -0700 Subject: [PATCH] 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) --- PKHeX/Legality/Structures/EncounterArea.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX/Legality/Structures/EncounterArea.cs b/PKHeX/Legality/Structures/EncounterArea.cs index 17f2e0f77..c2f305e29 100644 --- a/PKHeX/Legality/Structures/EncounterArea.cs +++ b/PKHeX/Legality/Structures/EncounterArea.cs @@ -380,7 +380,7 @@ private static IEnumerable 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;