Fix conversions warning (again)

This commit is contained in:
Corentin Jabot 2021-09-10 15:27:48 +02:00
parent 5521dd25b6
commit b3480111db
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ Position Inky::target(const GameState & gameState) const {
targetPosition.y += 2; targetPosition.y += 2;
break; break;
case Direction::NONE: case Direction::NONE:
assert("Pacman should be moving!"); assert(false && "Pacman should be moving!");
break; break;
} }

View File

@ -43,7 +43,7 @@ Position Pinky::target(const GameState & gameState) const {
targetPosition.y += 4; targetPosition.y += 4;
break; break;
case Direction::NONE: case Direction::NONE:
assert("Pacman should be moving!"); assert(false && "Pacman should be moving!");
break; break;
} }
return gridPositionToPosition(targetPosition); return gridPositionToPosition(targetPosition);