From 4385af885daf460a18e236f08509358f764b2c8c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 26 Oct 2007 20:46:09 +0000 Subject: 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 --- pokemod/CoinList.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pokemod/CoinList.cpp') 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); -- cgit