From 2e8b27de228b5df9ca2257bf31e64dabf82fe856 Mon Sep 17 00:00:00 2001 From: Greg Edwards Date: Tue, 5 May 2015 21:09:22 -0400 Subject: [PATCH] That feeling when everything just works the first time --- library/Structures/GtsRecord5.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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; } }