]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix docking re-anchor crash (#16404)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 14 May 2023 03:29:50 +0000 (13:29 +1000)
committerGitHub <noreply@github.com>
Sun, 14 May 2023 03:29:50 +0000 (13:29 +1000)
Content.Server/Shuttles/Systems/DockingSystem.cs

index b5b47983649f0cbd79c0f7237e427f8f4574ed52..26dfd68b6094e011c37a6266b59e1e032b90e1d6 100644 (file)
@@ -236,10 +236,11 @@ namespace Content.Server.Shuttles.Systems
             if (!component.Docked)
                 return;
 
-            var other = Comp<DockingComponent>(component.DockedWith!.Value);
+            var otherDock = component.DockedWith;
+            var other = Comp<DockingComponent>(otherDock!.Value);
 
             Undock(uid, component);
-            Dock(uid, component, component.DockedWith.Value, other);
+            Dock(uid, component, otherDock.Value, other);
             _console.RefreshShuttleConsoles();
         }