diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-05-23 02:24:14 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-05-23 02:24:14 +0000 |
| commit | 1a4b623c8ecb9d0c7d991312c12d78be4a68eff2 (patch) | |
| tree | 97e260380c334f8f55ac6d82f174ce8604d7dd6c /pokemod/CoinList.cpp | |
| parent | e858d98977a09b3c8faf4df87ada4abc1399e8e5 (diff) | |
| download | sigen-1a4b623c8ecb9d0c7d991312c12d78be4a68eff2.tar.gz sigen-1a4b623c8ecb9d0c7d991312c12d78be4a68eff2.tar.xz sigen-1a4b623c8ecb9d0c7d991312c12d78be4a68eff2.zip | |
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/CoinList.cpp')
| -rw-r--r-- | pokemod/CoinList.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pokemod/CoinList.cpp b/pokemod/CoinList.cpp index 83748355..d9bb353d 100644 --- a/pokemod/CoinList.cpp +++ b/pokemod/CoinList.cpp @@ -39,7 +39,7 @@ PokeGen::PokeMod::CoinList::CoinList(Ini &ini, unsigned _id) {
LogCtorIni("CoinList", _id);
ImportIni(ini);
- if(_id == UINT_MAX)
+ if (id == UINT_MAX)
LogIdError("CoinList");
}
@@ -118,6 +118,7 @@ void PokeGen::PokeMod::CoinList::ImportIni(Ini &ini, unsigned _id) id = _id;
ini.GetValue("name", name, "");
ini.GetValue("value", value, 0);
+ items.clear();
LogImportOver("CoinList", id, name);
}
@@ -167,7 +168,7 @@ PokeGen::PokeMod::CoinItem *PokeGen::PokeMod::CoinList::GetCoinItem(unsigned _id if (items[i].GetId() == _id)
return &items[i];
}
- LogSubmoduleFetch("CoinList", id, "item", _id, name);
+ LogSubmoduleFetchFail("CoinList", id, "item", _id, name);
return NULL;
}
|
