Fix StealthSystem ensuring a comp on a terminating entity in tests (#19413)

This commit is contained in:
DrSmugleaf 2023-08-21 21:43:52 -07:00 committed by GitHub
parent 93f85751f7
commit 7df72a6c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public sealed class StealthSystem : SharedStealthSystem
if (!enabled)
{
if (component.HadOutline)
if (component.HadOutline && !TerminatingOrDeleted(uid))
EnsureComp<InteractionOutlineComponent>(uid);
return;
}