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.
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.