Fix bug where allocated paths were never returned
This commit is contained in:
@@ -73,7 +73,7 @@ bool findPath(const PathfindingDesc *desc) {
|
||||
.weight = gCost + toTargetCost,
|
||||
.gCost = gCost,
|
||||
.hCost = toTargetCost,
|
||||
.pos = (TilePosition) {x, y}
|
||||
.pos = curPos
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user