Skip to content

Commit

Permalink
修复了点击事件的逻辑错误
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzhouyou committed Jun 11, 2019
1 parent 60f67cb commit 43f8906
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testWidget/GameLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ void GameLogic::clickedStone(Stone* stone)
}
if (second != nullptr)
{
if (isTwoStonesConnected() && evaluate(Click))
if (isTwoStonesConnected())
{
evaluate(Click);
first = second = nullptr;
} else
{
Expand Down

0 comments on commit 43f8906

Please sign in to comment.