summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/aystar.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-08-29 13:42:38 +0000
committeralberth <alberth@openttd.org>2010-08-29 13:42:38 +0000
commitbc6a5a5e645ac44415e5c94bb12fa24cfa0724cd (patch)
tree7465e7ffd19b99e576643417400a0c1876b7a81c /src/pathfinder/npf/aystar.cpp
parent2c962548e52e6334db0c2457eedb40710b23bbad (diff)
downloadopenttd-bc6a5a5e645ac44415e5c94bb12fa24cfa0724cd.tar.xz
(svn r20686) -Codechange: Make init_BinaryHeap() a method.
Diffstat (limited to 'src/pathfinder/npf/aystar.cpp')
-rw-r--r--src/pathfinder/npf/aystar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/npf/aystar.cpp b/src/pathfinder/npf/aystar.cpp
index 8e02476a4..f2e05ec5b 100644
--- a/src/pathfinder/npf/aystar.cpp
+++ b/src/pathfinder/npf/aystar.cpp
@@ -296,7 +296,7 @@ void init_AyStar(AyStar *aystar, Hash_HashProc hash, uint num_buckets)
* BinaryHeap allocates a block of 1024 nodes
* When that one gets full it reserves another one, till this number
* That is why it can stay this high */
- init_BinaryHeap(&aystar->OpenListQueue, 102400);
+ aystar->OpenListQueue.Init(102400);
aystar->addstart = AyStarMain_AddStartNode;
aystar->main = AyStarMain_Main;