summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/aystar.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-08-29 13:38:06 +0000
committeralberth <alberth@openttd.org>2010-08-29 13:38:06 +0000
commit3f0cd8c9f0e3b1da2383f09fac1e4a18e782968e (patch)
tree02e34f909dd537de180917e7a49bb949da8f5720 /src/pathfinder/npf/aystar.cpp
parent10b182482e20f56c4a73a98f4578b03d0ff2c2b9 (diff)
downloadopenttd-3f0cd8c9f0e3b1da2383f09fac1e4a18e782968e.tar.xz
(svn r20683) -Codechange: Make BinaryHeap_Delete() a method.
Diffstat (limited to 'src/pathfinder/npf/aystar.cpp')
-rw-r--r--src/pathfinder/npf/aystar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/npf/aystar.cpp b/src/pathfinder/npf/aystar.cpp
index 1a651a740..4b0485bc0 100644
--- a/src/pathfinder/npf/aystar.cpp
+++ b/src/pathfinder/npf/aystar.cpp
@@ -127,7 +127,7 @@ static int AyStarMain_CheckTile(AyStar *aystar, AyStarNode *current, OpenListNod
uint i;
/* Yes, check if this g value is lower.. */
if (new_g > check->g) return AYSTAR_DONE;
- aystar->OpenListQueue.del(&aystar->OpenListQueue, check, 0);
+ aystar->OpenListQueue.Delete(check, 0);
/* It is lower, so change it to this item */
check->g = new_g;
check->path.parent = closedlist_parent;