hi guys I am having a problem with my game crashing..
I first set up a state machine to switch between the title / levels which was working fine when I had just did an SDL_FillRect on each game state.
Now I have a title screen, then you enter the game which just prints out a graphical maze that is setup with a 2d vector of tiles, each tile is a Tile class object.
I finished the first level and did a test to make sure I can still change between states, I set a tile that will send you back to the title screen when you walk into it. It works, but then when you try to enter the game again there is a Stack Hash error It seems like it has something to do with the map vector, when I comment out the map and just have a black screen with my player I can escape back to the title screen and then back to the black screen with my player.. (but then if you try it again it crashes)
so I am thinking maybe it has something to do with both the map and my player graphics or the vector.. Does anyone recognize the error?
I have been streaming as I build my learning projects on twitch.tv/gamer27lv if anyone shows up there in the chat box I can show you the game and the crash
thanks for any info!
I narrowed it down to my player, it is not the map crashing the game...
looks like I got is solved nevermind...
EDIT: nevermind....not solved
Some code and stack traces would help.