From 32938929417d605386fa6246dc401fb04e7c1471 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Wed, 20 Dec 2023 10:21:53 +1100 Subject: [PATCH] Fix master (#22757) --- Content.Server/RoundEnd/RoundEndSystem.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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() -- 2.51.2