From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 14 May 2023 03:29:50 +0000 (+1000) Subject: Fix docking re-anchor crash (#16404) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=295e2620ad063b00924a828362bce2ad7deb0755;p=space-station-14.git Fix docking re-anchor crash (#16404) --- diff --git a/Content.Server/Shuttles/Systems/DockingSystem.cs b/Content.Server/Shuttles/Systems/DockingSystem.cs index b5b4798364..26dfd68b60 100644 --- a/Content.Server/Shuttles/Systems/DockingSystem.cs +++ b/Content.Server/Shuttles/Systems/DockingSystem.cs @@ -236,10 +236,11 @@ namespace Content.Server.Shuttles.Systems if (!component.Docked) return; - var other = Comp(component.DockedWith!.Value); + var otherDock = component.DockedWith; + var other = Comp(otherDock!.Value); Undock(uid, component); - Dock(uid, component, component.DockedWith.Value, other); + Dock(uid, component, otherDock.Value, other); _console.RefreshShuttleConsoles(); }