Superfluous nullptr check?

Isn’t the nullptr check on HitResult.GetActor() superfluous, since we’re already in the if (bTraceHit) { block?

Surprisingly - as someone on the Discord had encountered this - that can be true yet GetActor return nullptr.

Although you could just check GetActor() initially.

1 Like

superfluous… if programmers knew all that will happen then there would be no bugs in anything :slightly_smiling_face:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms