From 75b7d5c767428f7061365a186cb17a22de4112cc Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 25 May 2007 00:15:36 +0000 Subject: More modules PokéMod added MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@14 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/Object.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pokemod/Object.cpp') diff --git a/pokemod/Object.cpp b/pokemod/Object.cpp index a305b15a..cb9f1f8b 100644 --- a/pokemod/Object.cpp +++ b/pokemod/Object.cpp @@ -31,7 +31,9 @@ unsigned PokeGen::PokeMod::Object::GetId() const bool PokeGen::PokeMod::Object::IsValid() { - Validate(); + isValid = (id != UINT_MAX); + if (isValid) + Validate(); return isValid; } @@ -39,7 +41,9 @@ bool PokeGen::PokeMod::Object::IsValid() bool PokeGen::PokeMod::Object::IsValid(const wxListBox &output) { // Validate with debugging console output - Validate(output); + isValid = (id != UINT_MAX); + if (isValid) + Validate(output); return isValid; } #endif -- cgit