]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Teleporting while pulling crash fix (#31787)
authorgodisdeadLOL <169250097+godisdeadLOL@users.noreply.github.com>
Wed, 4 Sep 2024 16:44:10 +0000 (19:44 +0300)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 16:44:10 +0000 (18:44 +0200)
teleporting while pulling crash fix

Co-authored-by: YourUsername <you@example.com>
Content.Shared/Teleportation/Systems/SharedPortalSystem.cs

index 8d67aec518a6832b569e6b517989cfc0abb003aa..091bd8808af59fedfff025a94d9051de1c652d4a 100644 (file)
@@ -101,7 +101,7 @@ public abstract class SharedPortalSystem : EntitySystem
         if (TryComp<PullerComponent>(subject, out var pullerComp)
             && TryComp<PullableComponent>(pullerComp.Pulling, out var subjectPulling))
         {
-            _pulling.TryStopPull(subject, subjectPulling);
+            _pulling.TryStopPull(pullerComp.Pulling.Value, subjectPulling);
         }
 
         // if they came from another portal, just return and wait for them to exit the portal