Commit 16e9f52f authored by Marius Pa's avatar Marius Pa
Browse files

game humanPlayer is always true

Fix PVS-Studio issue "src/game.cpp:209: warning: V560
A part of conditional expression is always true: humanPlayer.".
parent c958ca62
Pipeline #250352 passed with stage
in 7 minutes and 26 seconds
......@@ -206,8 +206,8 @@ void Game::startHumanMove (int x, int y)
if (! humanPlayer) {
buttonClick();
}
else if (humanPlayer && ((m_currentPlayer == m_box->owner(index)) ||
(m_box->owner(index) == Nobody))) {
else if ((m_currentPlayer == m_box->owner(index)) ||
(m_box->owner(index) == Nobody)) {
m_waitingToMove = false;
m_moveNo++;
m_endMoveNo = LARGE_NUMBER;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment