[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdegames/kpat
From: André Wöbbeking <Woebbeking () web ! de>
Date: 2006-10-11 15:07:20
Message-ID: 1160579240.253196.3353.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 594541 by woebbe:
redeal(): fixed broken reverse iteration
M +4 -3 klondike.cpp
--- branches/KDE/3.5/kdegames/kpat/klondike.cpp #594540:594541
@@ -296,10 +296,11 @@
// of the new deck
pilecards += deck->cards();
- for (CardList::Iterator it = pilecards.fromLast(); it != pilecards.end(); --it)
+ for (int count = pilecards.count() - 1; count >= 0; --count)
{
- (*it)->setAnimated(false);
- deck->add(*it, true, false); // facedown, nospread
+ Card *card = pilecards[count];
+ card->setAnimated(false);
+ deck->add(card, true, false); // facedown, nospread
}
redealt = true;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic