From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Tue, 19 Dec 2023 23:21:53 +0000 (+1100) Subject: Fix master (#22757) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=32938929417d605386fa6246dc401fb04e7c1471;p=space-station-14.git Fix master (#22757) --- diff --git a/Content.Server/RoundEnd/RoundEndSystem.cs b/Content.Server/RoundEnd/RoundEndSystem.cs index 2867f7d32b..88c55154a3 100644 --- a/Content.Server/RoundEnd/RoundEndSystem.cs +++ b/Content.Server/RoundEnd/RoundEndSystem.cs @@ -112,8 +112,13 @@ namespace Content.Server.RoundEnd /// public EntityUid? GetCentcomm() { - AllEntityQuery().MoveNext(out var centcomm); - return centcomm == null ? null : _mapManager.GetMapEntityId(centcomm.MapId); + if (AllEntityQuery() + .MoveNext(out var centcomm, out var xform)) + { + return xform.MapUid; + } + + return null; } public bool CanCallOrRecall()