Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix InstantHit crashing if blockable and target is dead
If the weapon has TargetActorCenter, the projectile is Blockable and the target dies the same tick the projectile is fired but before the 'blocked' check is performed, the target.CenterPosition lookup would crash since the target has become invalid. Work around this by ignoring TargetActorCenter and using args.PassiveTarget position instead if the target is already dead.
- Loading branch information