diff options
author | alberth <alberth@openttd.org> | 2010-10-02 19:43:29 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-10-02 19:43:29 +0000 |
commit | d86f781ca54faf13bab50b2817cbce82546b0760 (patch) | |
tree | 180cb8f441c515571eb99949bf565c303c18dbf6 /src/pathfinder/npf/aystar.cpp | |
parent | f185a352693d3d78ced707ef990ccb44a84203e9 (diff) | |
download | openttd-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.cpp | 4 |
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"); |