From 1424ce34df59f6810ea9995e2717be6c05733ccc Mon Sep 17 00:00:00 2001 From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Sat, 11 Jan 2025 21:42:50 +0100 Subject: [PATCH] Update Content.Shared/Roles/SharedRoleSystem.cs --- Content.Shared/Roles/SharedRoleSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Shared/Roles/SharedRoleSystem.cs b/Content.Shared/Roles/SharedRoleSystem.cs index f90f01a830c0..826f41f0b8b7 100644 --- a/Content.Shared/Roles/SharedRoleSystem.cs +++ b/Content.Shared/Roles/SharedRoleSystem.cs @@ -38,10 +38,10 @@ public override void Initialize() private void OnSpawn(EntityUid uid, StartingMindRoleComponent component, PlayerSpawnCompleteEvent args) { - if (!_minds.TryGetMind(uid, out var mindId, out _)) + if (!_minds.TryGetMind(uid, out var mindId, out var mindComp)) return; - MindAddRole(mindId, component.MindRole , silent:component.Silent); + MindAddRole(mindId, component.MindRole , mind: mindComp, silent: component.Silent); } private void SetRequirementOverride(string value)