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;
break;
case Direction::NONE:
assert("Pacman should be moving!");
assert(false && "Pacman should be moving!");
break;
}

View File

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