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

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);
}