Fix another error on round restart when terminating spreaders (#23201)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
(cherry picked from commit bc304a3127)
This commit is contained in:
DrSmugleaf
2024-01-26 21:27:47 +01:00
committed by Debug
parent 6f07aee901
commit c7f5846bca
+2 -1
View File
@@ -70,7 +70,8 @@ public sealed class SpreaderSystem : EntitySystem
foreach (var neighbor in neighbors)
{
EnsureComp<ActiveEdgeSpreaderComponent>(neighbor);
if (!TerminatingOrDeleted(neighbor))
EnsureComp<ActiveEdgeSpreaderComponent>(neighbor);
}
}