summaryrefslogtreecommitdiffstats
path: root/pokemod/PokemonEvolution.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/PokemonEvolution.cpp')
-rw-r--r--pokemod/PokemonEvolution.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/pokemod/PokemonEvolution.cpp b/pokemod/PokemonEvolution.cpp
index 92ef1a8c..cfc424db 100644
--- a/pokemod/PokemonEvolution.cpp
+++ b/pokemod/PokemonEvolution.cpp
@@ -26,11 +26,11 @@
extern PokeGen::PokeMod::Pokemod curPokeMod;
PokeGen::PokeMod::PokemonEvolution::PokemonEvolution(const unsigned _id) :
- species(UINT_MAX),
- style(UINT_MAX),
- level(0),
- item(UINT_MAX),
- happiness(0)
+ species(UINT_MAX),
+ style(UINT_MAX),
+ level(0),
+ item(UINT_MAX),
+ happiness(0)
{
LogCtor("PokemonEvolution", _id);
id = _id;
@@ -113,7 +113,6 @@ void PokeGen::PokeMod::PokemonEvolution::ImportIni(Ini &ini, const unsigned _id)
if (_id == UINT_MAX)
{
ini.GetValue("id", id);
- // Was there an id associated with the element?
if (id == UINT_MAX)
LogIdNotFound("PokemonEvolution");
}
@@ -130,8 +129,7 @@ void PokeGen::PokeMod::PokemonEvolution::ImportIni(Ini &ini, const unsigned _id)
void PokeGen::PokeMod::PokemonEvolution::ExportIni(std::ofstream &fout, const String &pokemon) const
{
LogExportStart("PokemonEvolution", id);
- // Make elements
- Ini exPokemonEvolution(pokemon + " pokemonEvolution");
+ Ini exPokemonEvolution("pokemonEvolution " + pokemon);
exPokemonEvolution.AddField("id", id);
exPokemonEvolution.AddField("species", species);
exPokemonEvolution.AddField("style", style);