Fix deleted outline crash (#9136)

This commit is contained in:
metalgearsloth 2022-06-26 19:03:17 +10:00 committed by GitHub
parent ef0aa51e41
commit c4d803c495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public sealed class InteractionOutlineSystem : EntitySystem
}
var inRange = false;
if (localPlayer.ControlledEntity != null && entityToClick != null)
if (localPlayer.ControlledEntity != null && !Deleted(entityToClick))
{
inRange = _interactionSystem.InRangeUnobstructed(localPlayer.ControlledEntity.Value, entityToClick.Value);
}