diff --git a/Content.Server/Procedural/DungeonJob/DungeonJob.AutoCabling.cs b/Content.Server/Procedural/DungeonJob/DungeonJob.AutoCabling.cs index f9712af6ab..e21c803e28 100644 --- a/Content.Server/Procedural/DungeonJob/DungeonJob.AutoCabling.cs +++ b/Content.Server/Procedural/DungeonJob/DungeonJob.AutoCabling.cs @@ -65,6 +65,8 @@ public sealed partial class DungeonJob { var newStart = remaining.First(); frontier.Enqueue(newStart, 0f); + if (!costSoFar.ContainsKey(newStart)) + costSoFar[newStart] = 0f; lastDirection[newStart] = Direction.Invalid; }