summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinList.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2007-10-26 20:46:09 +0000
committerBen Boeckel <MathStuf@gmail.com>2007-10-26 20:46:09 +0000
commit4385af885daf460a18e236f08509358f764b2c8c (patch)
tree6c2838312dd7f42769280e24e8abc16b53c165cb /pokemod/CoinList.cpp
parent1f08afc80c73087bf9bde639754670548b89fc9f (diff)
Reverted repo back to rev24 because committing of rev25 messed up
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@26 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/CoinList.cpp')
-rw-r--r--pokemod/CoinList.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/pokemod/CoinList.cpp b/pokemod/CoinList.cpp
index 3e4b9292..f54dcf6a 100644
--- a/pokemod/CoinList.cpp
+++ b/pokemod/CoinList.cpp
@@ -190,8 +190,11 @@ unsigned PokeGen::PokeMod::CoinList::GetItemCount() const
const PokeGen::PokeMod::CoinListObject* PokeGen::PokeMod::CoinList::NewItem(Ini* const ini)
{
unsigned i = 0;
- for (; (i < GetItemCount()) && (GetItemByID(i) != UINT_MAX); ++i)
- ;
+ for (; i < GetItemCount(); ++i)
+ {
+ if (GetItemByID(i) == UINT_MAX)
+ break;
+ }
CoinListObject newItem(pokemod, i);
if (ini)
newItem.ImportIni(*ini);