1
General discussions / Re: SFML Game Development -- A book on SFML
« on: August 24, 2013, 11:06:29 pm »Does it work if you try the GitHub code directly?
Which compiler and operating system do you use?
I found where the problem was, although I have no idea that this could cause this. In the SpriteNode class, there is an drawCurrent() method declared as this:
virtual void drawCurrent(sf::RenderTarget& target, sf::RenderStates states) const;
but I had it like this:
virtual void drawCurrent(sf::RenderTarget& target, sf::RenderStates& states) const;
I passed the second argument as reference. I deleted the & and now it works properly.