diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-05-25 00:15:36 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-05-25 00:15:36 +0000 |
| commit | 75b7d5c767428f7061365a186cb17a22de4112cc (patch) | |
| tree | 46db9c129f3fa848a6ea084a31e01f2c59e67b2a /pokemod/Object.cpp | |
| parent | 1a4b623c8ecb9d0c7d991312c12d78be4a68eff2 (diff) | |
| download | sigen-75b7d5c767428f7061365a186cb17a22de4112cc.tar.gz sigen-75b7d5c767428f7061365a186cb17a22de4112cc.tar.xz sigen-75b7d5c767428f7061365a186cb17a22de4112cc.zip | |
More modules PokéMod added
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@14 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Object.cpp')
| -rw-r--r-- | pokemod/Object.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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
|
