mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
DunGen.AutoCabling: prevent missing key lookup when frontier exhausted (#44511)
AutoCabling: start a new frontier if old exhausted
This commit is contained in:
parent
c6ea5ae41c
commit
36507a9a4f
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue