]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Use RemCompDeferred for portals (#14896)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Mon, 27 Mar 2023 18:41:38 +0000 (05:41 +1100)
committerGitHub <noreply@github.com>
Mon, 27 Mar 2023 18:41:38 +0000 (11:41 -0700)
Content.Shared/Teleportation/Systems/SharedPortalSystem.cs

index 6523ce575e4684dcca53ef6da70731d7a5d528cc..b24047fcea7f9fab4497734c1df053f36021b749 100644 (file)
@@ -132,7 +132,7 @@ public abstract class SharedPortalSystem : EntitySystem
         // if they came from (not us), remove the timeout
         if (TryComp<PortalTimeoutComponent>(subject, out var timeout) && timeout.EnteredPortal != uid)
         {
-            RemComp<PortalTimeoutComponent>(subject);
+            RemCompDeferred<PortalTimeoutComponent>(subject);
         }
     }