Loading

Paste #pxka8kwia

  1.     struct entity {
  2.         int id;
  3.         sf::Sprite Sprite;
  4.         sf::Texture Tex;
  5.         std::string texPath;
  6.         float x;
  7.         float y;
  8.     };
  9.  
  10.  
  11. new object via:  struct entity bla = {id, new sf::Sprite(), new sf::Texture(), texPath, 200.0f, 200.0f};
  12.  
  13.  
  14. error: could not convert ‘(operator new(288ul), (<statement>, ((sf::Sprite*)<anonymous>)))’ from ‘sf::Sprite*’ to ‘sf::Sprite
  15.  
  16. error: could not convert ‘(operator new(32ul), (<statement>, ((sf::Texture*)<anonymous>)))’ from ‘sf::Texture*’ to ‘sf::Texture