]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix scram allowing you to bring someone along (#42393)
authorScarKy0 <106310278+ScarKy0@users.noreply.github.com>
Tue, 13 Jan 2026 16:56:05 +0000 (17:56 +0100)
committerGitHub <noreply@github.com>
Tue, 13 Jan 2026 16:56:05 +0000 (16:56 +0000)
1 line bugfix

Content.Shared/Trigger/Systems/ScramOnTriggerSystem.cs

index eded4007124699eba8c911ab6ec0f455ee09c9f1..cd79eed13bf88dc680379f69dbcc147c8a5c0903 100644 (file)
@@ -25,7 +25,7 @@ public sealed class ScramOnTriggerSystem : XOnTriggerSystem<ScramOnTriggerCompon
         // We need stop the user from being pulled so they don't just get "attached" with whoever is pulling them.
         // This can for example happen when the user is cuffed and being pulled.
         if (TryComp<PullableComponent>(target, out var pull) && _pulling.IsPulled(target, pull))
-            _pulling.TryStopPull(ent, pull);
+            _pulling.TryStopPull(target, pull);
 
         // Check if the user is pulling anything, and drop it if so.
         if (TryComp<PullerComponent>(target, out var puller) && TryComp<PullableComponent>(puller.Pulling, out var pullable))