Chrom{e,ium} doesn't know for each -.-

This commit is contained in:
Gwenhael Le Moine 2011-07-05 11:37:15 +02:00
parent 975cf4f6e1
commit a5e70504df

View file

@ -59,8 +59,8 @@ var levels = [ "#################@## x#H## x #### ##x #
function count_gifts( state ) {
var n = 0;
for each ( var c in state.board ) {
if ( c == cell.GIFT ) {
for ( var i = LEVEL_HEIGHT * LEVEL_WIDTH ; i-- ; ) {
if ( state.board[ i ] == cell.GIFT ) {
n++;
}
}