0 Members and 1 Guest are viewing this topic.
sf::Image image[3];sf::Sprite sprite[3];void Field::FDImage(std::string filename, int arpos){ if (!image[arpos].LoadFromFile(filename)) { App.Close(); } if (!sprite[arpos].SetImage(image[arpos])) { App.Close(); }}
C:\...\SFML_Project\main.cpp||In member function 'void Field::FDImage(std::string, int)':|C:\...\SFML_Project\main.cpp|52|error: could not convert '((Field*)this)->Field::sprite[arpos].sf::Sprite::SetImage(((const sf::Image&)((const sf::Image*)(&((Field*)this)->Field::image[arpos]))))' to 'bool' in argument to unary !