SFML community forums
Help => General => Topic started by: paupav on November 21, 2015, 03:50:13 am
-
i have pointer in second cpp which points to window and when im trying to draw sprite[10] I get segmentation fault.
window->draw(boxS[10]);
-
Please post your code, but as a random guess, is boxS of size 10?
-
That was the problem. thanks 8)
it is giving me unexpected behaviour when I'm trying to load texture when number of sprites isn't defined ( sprite[]; ) .