OnSphereOverlap in C++ causing crash

The problem is that the overlap doesn’t return any actora so the array is empty.

The if() should check if the array is empty, not index 0, then loop all indexes for the apply damage.

1 Like