Skip to content

Commit

Permalink
Update Content.Shared/Roles/SharedRoleSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
slarticodefast authored Jan 11, 2025
1 parent c326482 commit 1424ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Shared/Roles/SharedRoleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1424ce3

Please sign in to comment.