diff --git a/lib/Inky.cpp b/lib/Inky.cpp index f1c6c58..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!"); + assert(false && "Pacman should be moving!"); break; } diff --git a/lib/Pinky.cpp b/lib/Pinky.cpp index 1b855f1..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!"); + assert(false && "Pacman should be moving!"); break; } return gridPositionToPosition(targetPosition);