title: Lost link with Sprite texture
body: <p>I have this class to add Sprites to my game:</p>
  
  <pre><code>class Pickup {
     public:
         Pickup::Pickup()
         {
              Texture healthTexture;
              healthTexture.loadFromFile("health.png");
              m_Sprite.setTexture(healthTexture);
          } 
         Sprite Pickup::getSprite()
         {
              return m_Sprite;
         }
     private: 
          Sprite m_Sprite;
  };
  </code></pre>
  
  <p>I use Pickup nameSprite() to add another sprite to my game. But every time I do this (I tried with different images, I used <code>if(!healthTexture.loadFromFile(..))</code>to see if the problem is with the image) I only see a white rectangle instead of what I wanted, and nothing seems to be wrong. My question is: what is the cause for the link problem?</p>