diff --git a/lib/Inky.cpp b/lib/Inky.cpp index 6e568c9..43ebd0f 100644 --- a/lib/Inky.cpp +++ b/lib/Inky.cpp @@ -43,7 +43,7 @@ Position Inky::target(const GameState & gameState) const { targetPosition.y += 2; break; case Direction::NONE: - assert(false && "Pacman should be moving!"); + assert(("Pacman should be moving", false)); break; } diff --git a/lib/Pinky.cpp b/lib/Pinky.cpp index 0c06605..6965fc3 100644 --- a/lib/Pinky.cpp +++ b/lib/Pinky.cpp @@ -43,7 +43,7 @@ Position Pinky::target(const GameState & gameState) const { targetPosition.y += 4; break; case Direction::NONE: - assert(false && "Pacman should be moving!"); + assert(("Pacman should be moving", false)); break; } return gridPositionToPosition(targetPosition);