if(sf::Mouse::isButtonPressed(sf::Mouse::Left)){
sf::Vector2f localMousePos = sf::Mouse::getPosition(window);
int xc = localMousePos.x;
int yc = localMousePos.y;
for(int i = 0; i < board.GetBoxes().size(); i++){
sf::FloatRect fr = board.GetRect()[i].getGlobalBounds();
if(fr.contains(localMousePos)){
}
}
sf::Moue::getPosition(window) throws an error, saying "no conversion fromsf::vector 2i to sf::vector2f exists." If I change everything to an int value instead of float (i.e. sf::IntRect, changing GetRect()'s return to an int), then the dot left of contains() throws an error, because contains() only searches for floats. So basically the compiler is telling me I can neither have a float rect nor an int rect to solve this problem.