diff --git a/lib/Inky.cpp b/lib/Inky.cpp index 43ebd0f..6e568c9 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(("Pacman should be moving", false)); + assert(false && "Pacman should be moving!"); break; } diff --git a/lib/Pinky.cpp b/lib/Pinky.cpp index 6965fc3..0c06605 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(("Pacman should be moving", false)); + assert(false && "Pacman should be moving!"); break; } return gridPositionToPosition(targetPosition);