summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/npf.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-02 19:29:00 +0000
committeralberth <alberth@openttd.org>2010-10-02 19:29:00 +0000
commit9b21dfaeb0183d6e7813480d04e371827b1a073d (patch)
treee33a67b04e79f476ffb512b7cf7b45d5d58f3a0d /src/pathfinder/npf/npf.cpp
parenta8af2c97c1921fd6b87c8120d389052c261b6e17 (diff)
downloadopenttd-9b21dfaeb0183d6e7813480d04e371827b1a073d.tar.xz
(svn r20874) -Codechange: Make init_AyStar 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 2cad61e65..04213b405 100644
--- a/src/pathfinder/npf/npf.cpp
+++ b/src/pathfinder/npf/npf.cpp
@@ -1081,7 +1081,7 @@ void InitializeNPF()
static bool first_init = true;
if (first_init) {
first_init = false;
- init_AyStar(&_npf_aystar, NPFHash, NPF_HASH_SIZE);
+ _npf_aystar.Init(NPFHash, NPF_HASH_SIZE);
} else {
_npf_aystar.Clear();
}