Fix bug where allocated paths were never returned

This commit is contained in:
2023-11-16 09:00:27 +01:00
parent af99504370
commit c232fc9afd
5 changed files with 46 additions and 47 deletions

View File

@@ -73,7 +73,7 @@ bool findPath(const PathfindingDesc *desc) {
.weight = gCost + toTargetCost,
.gCost = gCost,
.hCost = toTargetCost,
.pos = (TilePosition) {x, y}
.pos = curPos
});
}