From kde-commits Thu Aug 20 16:01:27 2009 From: Stephan Kulow Date: Thu, 20 Aug 2009 16:01:27 +0000 To: kde-commits Subject: KDE/kdegames/kpat/patsolve Message-Id: <1250784087.658028.27249.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125078411122446 SVN commit 1013731 by coolo: don't overoptimze. Before the change: 59 out of 100 games lost, after the change: 12 lost (but a lot more unknown due to the larger test tree) BUG: 204544 M +1 -1 idiot.cpp --- trunk/KDE/kdegames/kpat/patsolve/idiot.cpp #1013730:1013731 @@ -156,7 +156,7 @@ // Find a card to move there for( int j = 0; j < 4; ++j ) { - if ( i != j && Wlen[j]>1 ) + if ( i != j && Wlen[j]>0 ) { mp->card_index = 0; mp->from = j;