(svn r20883) -Codechange: Make Hash_Delete a method.

This commit is contained in:
alberth
2010-10-02 19:42:42 +00:00
parent 15b784471e
commit f185a35269
3 changed files with 13 additions and 12 deletions

View File

@@ -61,7 +61,7 @@ OpenListNode *AyStar::OpenListPop()
/* Return the item the Queue returns.. the best next OpenList item. */
OpenListNode *res = (OpenListNode*)this->OpenListQueue.Pop();
if (res != NULL) {
Hash_Delete(&this->OpenListHash, res->path.node.tile, res->path.node.direction);
this->OpenListHash.DeleteValue(res->path.node.tile, res->path.node.direction);
}
return res;