Hey guys. I'm having some trouble using setSize. Basically, I have a timeline class, and I created one rectangle for a 'background', and one to use as a line. (There's probably better ways to create a line, but this still seems to be a problem) So, I create the background rectangle, set its position, size and draw it, no problem. But I have another rectangle called tLine, and whenever I try to set it's size, it crashes. If I comment out setSize, it crashes on window->draw(tLine);. I can, however, set it's position.
This is weird, I can do all that fine with rect, the background rectangle :s
Here's my class:
http://pastebin.com/P7NhdkaMThanks for any help in advance =)