DunGen.AutoCabling: prevent missing key lookup when frontier exhausted (#44511)

AutoCabling: start a new frontier if old exhausted
This commit is contained in:
Whatstone 2026-07-17 21:18:22 -04:00 • committed by GitHub
parent c6ea5ae41c
commit 36507a9a4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}