summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/aystar.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-02 19:44:54 +0000
committeralberth <alberth@openttd.org>2010-10-02 19:44:54 +0000
commit6f85b46eebf674b223df137a67c60b0b74953b97 (patch)
tree68668d9bbcbd8cdedfca41f516d91ac3dc29804f /src/pathfinder/npf/aystar.cpp
parentd86f781ca54faf13bab50b2817cbce82546b0760 (diff)
downloadopenttd-6f85b46eebf674b223df137a67c60b0b74953b97.tar.xz
(svn r20885) -Codechange: Make delete_Hash a method.
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 9eda4a3a7..3a1a5c057 100644
--- a/src/pathfinder/npf/aystar.cpp
+++ b/src/pathfinder/npf/aystar.cpp
@@ -199,8 +199,8 @@ void AyStar::Free()
this->OpenListQueue.Free(false);
/* 2nd argument above is false, below is true, to free the values only
* once */
- delete_Hash(&this->OpenListHash, true);
- delete_Hash(&this->ClosedListHash, true);
+ this->OpenListHash.Delete(true);
+ this->ClosedListHash.Delete(true);
#ifdef AYSTAR_DEBUG
printf("[AyStar] Memory free'd\n");
#endif