diff --git a/library/Structures/GtsRecord5.cs b/library/Structures/GtsRecord5.cs index 805aa58a..184eb7f6 100644 --- a/library/Structures/GtsRecord5.cs +++ b/library/Structures/GtsRecord5.cs @@ -75,18 +75,18 @@ namespace PkmnFoundations.Structures { m_data = null; m_data_readonly = null; - //m_pokemon = null; + m_pokemon = null; return; } if (value.Length != 0xEC) throw new ArgumentException("PKM length is incorrect"); m_data = value; m_data_readonly = new ReadOnlyCollection(m_data); - //m_pokemon = null; + m_pokemon = null; } } private byte[] m_data; private ReadOnlyCollection m_data_readonly; - //private PokemonParty5 m_pokemon; + private PokemonParty5 m_pokemon; public override PokemonPartyBase Pokemon { @@ -94,11 +94,10 @@ namespace PkmnFoundations.Structures { if (DataActual == null || m_pokedex == null) return null; - throw new NotImplementedException(); - //if (m_pokemon == null) - // m_pokemon = new PokemonParty4(m_pokedex, DataActual); + if (m_pokemon == null) + m_pokemon = new PokemonParty5(m_pokedex, DataActual); - //return m_pokemon; + return m_pokemon; } }