From 7df72a6c7244607c19eeff12c059578301930408 Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Mon, 21 Aug 2023 21:43:52 -0700 Subject: [PATCH] Fix StealthSystem ensuring a comp on a terminating entity in tests (#19413) --- Content.Client/Stealth/StealthSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Client/Stealth/StealthSystem.cs b/Content.Client/Stealth/StealthSystem.cs index 7cf6e54639..b60ffc2a40 100644 --- a/Content.Client/Stealth/StealthSystem.cs +++ b/Content.Client/Stealth/StealthSystem.cs @@ -44,7 +44,7 @@ public sealed class StealthSystem : SharedStealthSystem if (!enabled) { - if (component.HadOutline) + if (component.HadOutline && !TerminatingOrDeleted(uid)) EnsureComp(uid); return; }