Skip to content

Commit

Permalink
fix coinflip bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dualface committed Aug 8, 2013
1 parent 2092351 commit c6049ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/coinflip/scripts/views/Board.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function Board:getCoin(row, col)
end

function Board:flipCoin(coin, includeNeighbour)
if not coin then return end
if not coin or coin == Levels.NODE_IS_EMPTY then return end

self.flipAnimationCount = self.flipAnimationCount + 1
coin:flip(function()
Expand Down

0 comments on commit c6049ad

Please sign in to comment.