Fix deleted outline crash (#9136)
This commit is contained in:
parent
ef0aa51e41
commit
c4d803c495
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue