Ah, sorry about that, pressed and isPressed are the same variable, that was just a typo. I tried assigning points[1] to like this:
void Player::update(sf::RenderWindow& window, sf::Time dt)
{
mousePos = sf::Mouse::getPosition(window);
if (pressed)
points[0] = sf::Vector2f(static_cast<float>(mousePos.x), static_cast<float>(mousePos.y));
if (!pressed)
points[1] = sf::Vector2f(static_cast<float>(mousePos.x), static_cast<float>(mousePos.y));
}
But I quickly realized that doesn't work. At this point I'm out of ideas though. =\