Исправляет краш сервера при двойной выдаче генокрада. (#574)
This commit is contained in:
parent
e5ef1df427
commit
c79517ba71
1 changed files with 2 additions and 1 deletions
|
|
@ -58,7 +58,8 @@ public sealed partial class ChangelingRuleSystem : GameRuleSystem<ChangelingRule
|
|||
|
||||
_antag.SendBriefing(target, briefing, Color.Yellow, BriefingSound);
|
||||
_role.MindHasRole<ChangelingRoleComponent>(mindId, out var changelingRole);
|
||||
if (changelingRole is not null)
|
||||
_role.MindHasRole<RoleBriefingComponent>(mindId, out var briefingComp);
|
||||
if (changelingRole is not null && briefingComp is null)
|
||||
{
|
||||
AddComp<RoleBriefingComponent>(changelingRole.Value.Owner);
|
||||
Comp<RoleBriefingComponent>(changelingRole.Value.Owner).Briefing = briefing;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue