Crashing when actor occupies projectile's spawn point's space during projectile spawning.

My player actor has a scene component that serves as a spawn point for projectiles. Everything works as intended until another actor is standing in the exact spot as the projectile spawn point when the projectile spawns.

The projectile class uses an overlap event which which checks the tag of the actor it overlaps with, then triggers the UGameplayStatics::ApplyDamage() function if it has the right tag. This works as intended except when another actor is directly on top of the projectile spawn point when the projectile spawns, which creates the error “EXCEPTION_ACCESS_VIOLATION reading address 0x00000000000001b8”.

Within my overlap event I isolated both the tag portion and the ApplyDamage function to see if it’s one or the other that’s causing the issue and found that either one will cause a crash. If I just write to the log, no issues.

With that said, I’m assuming the problem has something to do with the projectile having to execute functionality such as ApplyDamage immediately upon spawning.

I can think of a few ways around this, such as placing the spawn point within it’s parent in such a way that another actor can’t occupy the same space as it, but I feel like there has to be a more elegant way of solving this problem. Any suggestions?