weird pointer problem

Hi
I'm making a strategy game. It has over 500 lines so I won't put it here. There I have a const pointer. I check if it's null in two different functions and I get different results.
I wonder if that could be caused by the compiler I use.
Nope. There is something wrong with your code.

How are you checking the value? (Or better yet, how are you referencing the value to check?)
Another possibility is the way you are passing it around. Quite often the code will take a copy of the original pointer without you realising it so it is not necessarily the same pointer you are testing.
Topic archived. No new replies allowed.