Search found 2 matches
- February 14th, 2018, 3:56 am
- Forum: Everything
- Topic: Game shits the bed only when I declare an extra variable?
- Replies: 5
- Views: 1768
Re: Game shits the bed only when I declare an extra variable
Oh my goodness with your advice to check if variables have been initialized to valid values led me to finding the error with two bool values elsewhere not being initialized! I'm so happy, now I can continue adding stuff to the game haha thank you so much !
- February 14th, 2018, 1:57 am
- Forum: Everything
- Topic: Game shits the bed only when I declare an extra variable?
- Replies: 5
- Views: 1768
Game shits the bed only when I declare an extra variable?
I have made my own version of the snake game and it works fine, unless I simply add: bool pauseGame; bool stopP; into my 'Game.h'. When I run the game, it crashes immediately and exits. However, without the two bool's, the game runs fine. Note that I have only declared these variables and havn't act...