Skip to content

Commit

Permalink
Fix error on round restart when terminating spreaders (#20850)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSmugleaf authored Oct 9, 2023
1 parent 83f79fc commit f776251
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Server/Spreader/SpreaderSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ private void OnTerminating(EntityUid uid, EdgeSpreaderComponent component, ref E

foreach (var neighbor in neighbors)
{
EnsureComp<ActiveEdgeSpreaderComponent>(neighbor);
if (!TerminatingOrDeleted(neighbor))
EnsureComp<ActiveEdgeSpreaderComponent>(neighbor);
}
}

Expand Down

0 comments on commit f776251

Please sign in to comment.