Hi,
I would appreciate some clarification on lecture 109, “Protecting from a Null Pointer”:
I am struggling to understand how adding in the pointer “PressurePlate” in the if statement and then following with && for the rest of the condition, will protect against a null pointer?
My understanding is:
The pointer “PressurePlate” has a value saved as an address. So if I add this into the if statement and stating that this address should be the same as the PressurePlate->IsOverlappingActor(ActorThatOpen)
In order for the if statement to execute, how would this be true?
The way I see it, the if statement would require an address value and a bool to be both TRUE to execute, which does not make sense?
Thanks in advance for any help.
Kind Regards
Tiaan Adlem