* fixed some boundary conditions for menu initialization

* changed # victories to be calculated value
* removed nbVictories accessor
This commit is contained in:
techdragon.nguyen@gmail.com
2010-11-20 10:11:06 +00:00
parent 4a0965c853
commit 36d25441e2
4 changed files with 10 additions and 25 deletions

View File

@@ -141,7 +141,7 @@ bool DeckMenu::showDetailsScreen()
void DeckMenu::initMenuItems()
{
float sY = mY + kVerticalMargin;
for (int i = startId; i < startId + mCount; ++i)
for (int i = startId; i < mCount; ++i)
{
float y = mY + kVerticalMargin + i * kLineHeight;
DeckMenuItem * currentMenuItem = static_cast<DeckMenuItem*> (mObjects[i]);