From c4d803c49525f6b11aeb6b9c7e7fd2e21698cea9 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 26 Jun 2022 19:03:17 +1000 Subject: [PATCH] Fix deleted outline crash (#9136) --- Content.Client/Outline/InteractionOutlineSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Client/Outline/InteractionOutlineSystem.cs b/Content.Client/Outline/InteractionOutlineSystem.cs index de5751ff62..b456db7c4b 100644 --- a/Content.Client/Outline/InteractionOutlineSystem.cs +++ b/Content.Client/Outline/InteractionOutlineSystem.cs @@ -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); }