Original Post
I've recently been working on a platformer, and ran into a wierd bug. I'm not sure if its due to my data losing scope or what, but I created a class that holds the information about the world. Well I also included an array to hold information about each cell, and of course one of these would be the texture being used for that cell. Now when I try to use that texture to draw my sprites to the screen they never show up. So after a bit of working, I transfered the texture information out of the struct and made it its own array, and it works fine. Anyone know a reason behind this? The rest of the data from the struct works fine and can update at the same location where I need to draw, but for some reason I can't retrieve any texture information. Thanks for your time. Slyprid