d10 bugfix

This commit is contained in:
Baipyrus 2023-12-11 10:57:30 +01:00
parent de2b777f37
commit 35f32b2a15
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ while (open.length > 0) {
};
if (closed.some((e) => compare(e, next))) continue;
if (!relPos(bends[symbol], -i, -j)) continue;
if (!bends[symbol] || !relPos(bends[symbol], -i, -j)) continue;
open.push(next);
}

View File

@ -75,7 +75,7 @@ while (open.length > 0) {
};
if (closed.some((e) => compare(e, next))) continue;
if (!relPos(bends[symbol], -i, -j)) continue;
if (!bends[symbol] || !relPos(bends[symbol], -i, -j)) continue;
open.push(next);
}