I'm getting an access violation and I can't figure out why, I have a class called Star which has a vector of sprites and creates an Animation, the Animation holds pointers to the sprites in Star. When I create one Star instance, everything works... but when I create a vector of Stars, I get an access violation. I'm pretty sure the pointer in the Animation is going invalid but when I create a vector of Animations and use them without the Star class, everything works... Anyway
maybe my code will be better at explaining (Sorry for posting 6 files, hopefully someone has perfected the art of reading cringe inducing source code).
Animation.hAnimation.cppStar.hStar.cppBackground.hBackground.cppedit: I redesigned my animation class and things are a lot more simple now.
Animation.hAnimation.cppStar.hStar.cppThis is working well, only thing I'm not happy with is having to define the whole static LoadTexture function in Star.h.