Quote:

Correct me if I'm wrong, but a pointer == 0 is true and pointer != 0 is false in C, so this is valid syntax.




Yes, but this part:

Code:

(..&& entity1 && entity2...)



is not correct. It will work in most version of ANSI C and C++, but most programmers will recommended against it.

You should do something like:

Code:

(..&& (entity1 != NULL) && (entity2 != NULL) ..)




Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI