(svn r20886) -Codechange: Make init_Hash a method.

This commit is contained in:
alberth
2010-10-02 19:46:24 +00:00
parent 67f4b8ab83
commit 6c31c357d6
3 changed files with 17 additions and 23 deletions

View File

@@ -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