summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/npf.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-02 09:49:32 +0000
committeralberth <alberth@openttd.org>2010-10-02 09:49:32 +0000
commit8e5aaca6531c8048ff32878a4a2ecc98e5bad261 (patch)
tree50638962edc1fa2695fe4754ffc41fd8162a9ac2 /src/pathfinder/npf/npf.cpp
parent2a796187efdaeb0050d0501ad7b468fdce84c2ee (diff)
downloadopenttd-8e5aaca6531c8048ff32878a4a2ecc98e5bad261.tar.xz
(svn r20864) -Codechange: Make AyStar_Clear() a method.
Diffstat (limited to 'src/pathfinder/npf/npf.cpp')
-rw-r--r--src/pathfinder/npf/npf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/npf/npf.cpp b/src/pathfinder/npf/npf.cpp
index 42a09a3f2..a8b471c73 100644
--- a/src/pathfinder/npf/npf.cpp
+++ b/src/pathfinder/npf/npf.cpp
@@ -1083,7 +1083,7 @@ void InitializeNPF()
first_init = false;
init_AyStar(&_npf_aystar, NPFHash, NPF_HASH_SIZE);
} else {
- AyStarMain_Clear(&_npf_aystar);
+ _npf_aystar.Clear();
}
_npf_aystar.loops_per_tick = 0;
_npf_aystar.max_path_cost = 0;