summaryrefslogtreecommitdiffstats
path: root/pokemod/PokemonNature.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2007-05-23 02:24:14 +0000
committerBen Boeckel <MathStuf@gmail.com>2007-05-23 02:24:14 +0000
commit1a4b623c8ecb9d0c7d991312c12d78be4a68eff2 (patch)
tree97e260380c334f8f55ac6d82f174ce8604d7dd6c /pokemod/PokemonNature.cpp
parente858d98977a09b3c8faf4df87ada4abc1399e8e5 (diff)
Added more PokéMod modules
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@13 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/PokemonNature.cpp')
-rw-r--r--pokemod/PokemonNature.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/pokemod/PokemonNature.cpp b/pokemod/PokemonNature.cpp
index 7bc972bc..ead7cd2f 100644
--- a/pokemod/PokemonNature.cpp
+++ b/pokemod/PokemonNature.cpp
@@ -37,7 +37,7 @@ PokeGen::PokeMod::PokemonNature::PokemonNature(Ini &ini, unsigned _id)
{
LogCtorIni("PokemonNature", _id);
ImportIni(ini, _id);
- if(_id == UINT_MAX)
+ if (id == UINT_MAX)
LogIdError("PokemonNature");
}
@@ -101,11 +101,11 @@ void PokeGen::PokeMod::PokemonNature::ImportIni(Ini &ini, unsigned _id)
LogImportOver("PokemonNature", id);
}
-void PokeGen::PokeMod::PokemonNature::ExportIni(std::ofstream &fout) const
+void PokeGen::PokeMod::PokemonNature::ExportIni(std::ofstream &fout, const String &pokemon) const
{
LogExportStart("PokemonNature", id);
// Make elements
- Ini exPokemonNature("PokemonNature");
+ Ini exPokemonNature(pokemon + " pokemonNature");
exPokemonNature.AddField("id", id);
exPokemonNature.AddField("nature", nature);
exPokemonNature.AddField("weight", weight);