diff options
author | alberth <alberth@openttd.org> | 2010-10-02 19:46:24 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-10-02 19:46:24 +0000 |
commit | 4af4d268d875c0dc09b5e1cea77d52b07dc3ec6e (patch) | |
tree | 11d2f6e3e391f769185dd7d60297b6b4d62438f6 /src/pathfinder/npf/aystar.cpp | |
parent | 6f85b46eebf674b223df137a67c60b0b74953b97 (diff) | |
download | openttd-4af4d268d875c0dc09b5e1cea77d52b07dc3ec6e.tar.xz |
(svn r20886) -Codechange: Make init_Hash a method.
Diffstat (limited to 'src/pathfinder/npf/aystar.cpp')
-rw-r--r-- | src/pathfinder/npf/aystar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathfinder/npf/aystar.cpp b/src/pathfinder/npf/aystar.cpp index 3a1a5c057..fe2af5156 100644 --- a/src/pathfinder/npf/aystar.cpp +++ b/src/pathfinder/npf/aystar.cpp @@ -285,8 +285,8 @@ void AyStar::AddStartNode(AyStarNode *start_node, uint g) void AyStar::Init(Hash_HashProc hash, uint num_buckets) { /* Allocated the Hash for the OpenList and ClosedList */ - init_Hash(&this->OpenListHash, hash, num_buckets); - init_Hash(&this->ClosedListHash, hash, num_buckets); + this->OpenListHash.Init(hash, num_buckets); + this->ClosedListHash.Init(hash, num_buckets); /* Set up our sorting queue * BinaryHeap allocates a block of 1024 nodes |