summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/npf.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-02 10:00:05 +0000
committeralberth <alberth@openttd.org>2010-10-02 10:00:05 +0000
commit7bb7d6c35a8d5ce01120fe54b7544186be24ef08 (patch)
tree82fbe310f2a6275cf6c8f353d18dd342f0bc6bde /src/pathfinder/npf/npf.cpp
parent49ba3539b5971535476110cba85dbf13f9b02bd6 (diff)
downloadopenttd-7bb7d6c35a8d5ce01120fe54b7544186be24ef08.tar.xz
(svn r20868) -Codechange: Make AyStarMain_Main() 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 b027ba933..2cad61e65 100644
--- a/src/pathfinder/npf/npf.cpp
+++ b/src/pathfinder/npf/npf.cpp
@@ -1007,7 +1007,7 @@ static NPFFoundTargetData NPFRouteInternal(AyStarNode *start1, bool ignore_start
_npf_aystar.user_data[NPF_RAILTYPES] = railtypes;
/* GO! */
- r = AyStarMain_Main(&_npf_aystar);
+ r = _npf_aystar.Main();
assert(r != AYSTAR_STILL_BUSY);
if (result.best_bird_dist != 0) {