summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/aystar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathfinder/npf/aystar.cpp')
-rw-r--r--src/pathfinder/npf/aystar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathfinder/npf/aystar.cpp b/src/pathfinder/npf/aystar.cpp
index 01057ea73..571754002 100644
--- a/src/pathfinder/npf/aystar.cpp
+++ b/src/pathfinder/npf/aystar.cpp
@@ -33,7 +33,7 @@
* If so, it returns the PathNode, else NULL */
PathNode *AyStar::ClosedListIsInList(const AyStarNode *node)
{
- return (PathNode*)Hash_Get(&this->ClosedListHash, node->tile, node->direction);
+ return (PathNode*)this->ClosedListHash.Get(node->tile, node->direction);
}
/* This adds a node to the ClosedList
@@ -50,7 +50,7 @@ void AyStar::ClosedListAdd(const PathNode *node)
* If so, it returns the OpenListNode, else NULL */
OpenListNode *AyStar::OpenListIsInList(const AyStarNode *node)
{
- return (OpenListNode*)Hash_Get(&this->OpenListHash, node->tile, node->direction);
+ return (OpenListNode*)this->OpenListHash.Get(node->tile, node->direction);
}
/* Gets the best node from OpenList