Am I missing something with C++ coding?

In this lecture, Mike gets the PhysicsHandle then checks that one was found but in the code he writes

if (PhysicsHandle)
{
}
else
{
// log out error code here
}

Would is not be better to simply use if (!PhysicsHandle), the ! meaning not in C++ code rather than the curly brackets and the else statement or am I missing something?

1 Like

Yeah, he fixes that up in the next lecture IIRC.

Privacy & Terms