diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-06-22 17:46:50 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-06-22 17:46:50 +0000 |
| commit | 5c3ca621f75587173bab3d946aee81dd2d36f495 (patch) | |
| tree | 2d64b74bbe323a582cdc17f0a442c5ff1b48038e /pokemod/CoinList.cpp | |
| parent | 3595239f08f2bc1df32ef22ed6de9bde10ca3384 (diff) | |
Pokemod validation, paths made to default
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@20 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/CoinList.cpp')
| -rw-r--r-- | pokemod/CoinList.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pokemod/CoinList.cpp b/pokemod/CoinList.cpp index 5a3c3fc2..1471b528 100644 --- a/pokemod/CoinList.cpp +++ b/pokemod/CoinList.cpp @@ -24,19 +24,19 @@ #include "CoinList.h"
-extern PokeGen::PokeMod::Pokemod curPokeMod;
-
-PokeGen::PokeMod::CoinList::CoinList(const unsigned _id) :
+PokeGen::PokeMod::CoinList::CoinList(const Pokemod *par, const unsigned _id) :
name(""),
value(0)
{
LogCtor("CoinList", _id);
id = _id;
+ pokemod = par;
}
-PokeGen::PokeMod::CoinList::CoinList(Ini &ini, const unsigned _id)
+PokeGen::PokeMod::CoinList::CoinList(const Pokemod *par, Ini &ini, const unsigned _id)
{
LogCtorIni("CoinList", _id);
+ pokemod = par;
ImportIni(ini, _id);
if (id == UINT_MAX)
LogIdError("CoinList");
@@ -260,7 +260,7 @@ void PokeGen::PokeMod::CoinList::NewCoinItem(Ini *const ini) if (!GetCoinItem(i))
break;
}
- CoinItem newCoinItem(i);
+ CoinItem newCoinItem(pokemod, i);
if (ini)
newCoinItem.ImportIni(*ini);
LogSubmoduleNew("CoinList", id, "item", i, name);
|
