summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/aystar.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-02 19:43:29 +0000
committeralberth <alberth@openttd.org>2010-10-02 19:43:29 +0000
commitd86f781ca54faf13bab50b2817cbce82546b0760 (patch)
tree180cb8f441c515571eb99949bf565c303c18dbf6 /src/pathfinder/npf/aystar.cpp
parentf185a352693d3d78ced707ef990ccb44a84203e9 (diff)
downloadopenttd-d86f781ca54faf13bab50b2817cbce82546b0760.tar.xz
(svn r20884) -Codechange: Make clear_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 4ef8cbfbe..9eda4a3a7 100644
--- a/src/pathfinder/npf/aystar.cpp
+++ b/src/pathfinder/npf/aystar.cpp
@@ -216,8 +216,8 @@ void AyStar::Clear()
* the hash. */
this->OpenListQueue.Clear(false);
/* Clean the hashes */
- clear_Hash(&this->OpenListHash, true);
- clear_Hash(&this->ClosedListHash, true);
+ this->OpenListHash.Clear(true);
+ this->ClosedListHash.Clear(true);
#ifdef AYSTAR_DEBUG
printf("[AyStar] Cleared AyStar\n");