Skip to content

Commit

Permalink
Fixed bug where if a column was full to the top pieces wouldn't colla…
Browse files Browse the repository at this point in the history
…pse properly
  • Loading branch information
Krishna committed Mar 26, 2010
1 parent 00bf57a commit 5ebb897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ int Game::collapse()

void Game::pullDown(int y, int x)
{
for(int r = y + 1; r < board_height_; ++r)
for(int r = y + 1; r < board_height_+2; ++r)
{
get(r-1, x) = get(r, x);
}
Expand Down

0 comments on commit 5ebb897

Please sign in to comment.