diff --git a/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Utility.cs b/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Utility.cs index b7cdcf2b5e..b07bbe6e4c 100644 --- a/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Utility.cs +++ b/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Utility.cs @@ -88,13 +88,16 @@ private void AddTcToPlayer(EntityUid player, int amount, bool displayMessage = t var allMinds = new HashSet>(); if (filterDead) { - allMinds = _mindSystem.GetAliveHumans(EntityUid.Invalid); + allMinds = _mindSystem.GetAliveHumans(); } else { - var query = EntityQueryEnumerator(); - while (query.MoveNext(out var mind, out var mindComp, out _)) + var query = EntityQueryEnumerator(); + while (query.MoveNext(out var uid, out _)) { + if (!_mindSystem.TryGetMind(uid, out var mind, out var mindComp)) + continue; + allMinds.Add(new Entity(mind, mindComp)); } }