Hello guys !
I have a vector inside a class:
std::vector<sf::RectangleShape*> pShapes;
sf::RectangleShape * p;
If I add something to the vector I do
p = new sf::RectangleShape;
pShapes.push_back(p);
Now the problem:
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const
{
for (int i = 0; i < pShapes.size(); ++i)
{
target.draw(pShapes[i],states);
}
}
It gives me this error:
I searched for this problem but didn't find anything.
Thanks for your help!
Greetings
Er4zoX