Everything in my Breakout code works except for the Lives count. Instead of decrementing from 3 to 0, it continues to decrement into negative values. Is it the "lives--;" line that is wrong, or is it just in the wrong place.
// Ball goes to bottom, paddle misses, lose life
if (getY(ball) + getHeight(ball) >= getHeight(window))
{
lives--;
printf("%i\n", lives);
// Center ball in window
setLocation(ball, (getWidth(window) - getWidth(ball)) / 2, (getHeight(window) - getHeight(ball))/2);
// Center paddle in window
setLocation(paddle, (getWidth(window) - getWidth(paddle)) / 2, (getHeight(window) - getHeight(paddle)) - 100);
waitForClick();
}