summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/aystar.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-02 19:42:42 +0000
committeralberth <alberth@openttd.org>2010-10-02 19:42:42 +0000
commitf185a352693d3d78ced707ef990ccb44a84203e9 (patch)
treea4ceb4a8970fe907836865f6ba8775c879ba8856 /src/pathfinder/npf/aystar.cpp
parent15b784471e3fc0aa210399668294481fa7ceb99d (diff)
downloadopenttd-f185a352693d3d78ced707ef990ccb44a84203e9.tar.xz
(svn r20883) -Codechange: Make Hash_Delete a method.
Diffstat (limited to 'src/pathfinder/npf/aystar.cpp')
-rw-r--r--src/pathfinder/npf/aystar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/npf/aystar.cpp b/src/pathfinder/npf/aystar.cpp
index f8f939894..4ef8cbfbe 100644
--- a/src/pathfinder/npf/aystar.cpp
+++ b/src/pathfinder/npf/aystar.cpp
@@ -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;