Hello,
I am being presented with a simple issue while trying to program a game with the SDL library. I have a function that fills an instance of a structure "tile" with values. I also have a function that puts the tile on the screen.
I ended up getting a status 3 (Me pointing to something that doesn't exist). I would appreciate it if somebody tell me what to do to make my functions treat arrays the same way as single instances. Thanks so much in advance.
Upon running. I'm thinking of making a typedef for the *image so it'll be of type image_pointer instead of a pointer to type image.
Edit: That had bad results, it doesn't even work with the 1st instance anymore
Edit: I am really worried now... The test_tile pointer doesn't work when I remove the array but the temp tile does. How can I remove the memory that my program left behind?
I can't printf properly with this library but I think the real problem can be found in my last comment. Sorry, I have to pack it in for the night. I will probably resurrect this problem tomorrow at some point.