From 4af4d268d875c0dc09b5e1cea77d52b07dc3ec6e Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 2 Oct 2010 19:46:24 +0000 Subject: (svn r20886) -Codechange: Make init_Hash a method. --- src/pathfinder/npf/aystar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pathfinder/npf/aystar.cpp') 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 -- cgit v1.2.3-54-g00ecf