Skip to content

Commit b4750c1

Browse files
committed
Use int instead of byte storage for turn costs
1 parent 841cb9e commit b4750c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/graphhopper/storage/BaseGraph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public BaseGraph(Directory dir, int intsForFlags, boolean withElevation, boolean
6666
this.store = new BaseGraphNodesAndEdges(dir, intsForFlags, withElevation, withTurnCosts, segmentSize);
6767
this.nodeAccess = new GHNodeAccess(store);
6868
this.segmentSize = segmentSize;
69-
turnCostStorage = withTurnCosts ? new TurnCostStorage(this, dir.create("turn_costs", segmentSize)) : null;
69+
turnCostStorage = withTurnCosts ? new TurnCostStorage(this, dir.create("turn_costs", dir.getDefaultType("turn_costs", true), segmentSize)) : null;
7070
}
7171

7272
private int getOtherNode(int nodeThis, long edgePointer) {

0 commit comments

Comments
 (0)