Fix random test fail in DeleteAllThenGhost (#32753)
It's simple. We kill the heisentest
This commit is contained in:
committed by
Vasilis The Pikachu
parent
af72f2e17c
commit
e5ad32fe93
@@ -478,7 +478,13 @@ public abstract class SharedRoleSystem : EntitySystem
|
||||
var exclusiveAntag = false;
|
||||
foreach (var role in mind.MindRoles)
|
||||
{
|
||||
var roleComp = Comp<MindRoleComponent>(role);
|
||||
if (!TryComp<MindRoleComponent>(role, out var roleComp))
|
||||
{
|
||||
//If this ever shows up outside of an integration test, then we need to look into this further.
|
||||
Log.Warning($"Mind Role Entity {role} does not have MindRoleComponent!");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (roleComp.Antag || exclusiveAntag)
|
||||
antagonist = true;
|
||||
if (roleComp.ExclusiveAntag)
|
||||
|
||||
Reference in New Issue
Block a user