summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/aystar.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-08-29 13:36:50 +0000
committeralberth <alberth@openttd.org>2010-08-29 13:36:50 +0000
commit10b182482e20f56c4a73a98f4578b03d0ff2c2b9 (patch)
tree82de5b6f9017536c04d24452dd2a0fbb38ff7f32 /src/pathfinder/npf/aystar.cpp
parent92801ac718a2bb735aac91c869239967a9cee7fc (diff)
downloadopenttd-10b182482e20f56c4a73a98f4578b03d0ff2c2b9.tar.xz
(svn r20682) -Codechange: Make BinaryHeap_Pop() 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 49ca4e1b6..1a651a740 100644
--- a/src/pathfinder/npf/aystar.cpp
+++ b/src/pathfinder/npf/aystar.cpp
@@ -62,7 +62,7 @@ static OpenListNode *AyStarMain_OpenList_IsInList(AyStar *aystar, const AyStarNo
static OpenListNode *AyStarMain_OpenList_Pop(AyStar *aystar)
{
/* Return the item the Queue returns.. the best next OpenList item. */
- OpenListNode *res = (OpenListNode*)aystar->OpenListQueue.pop(&aystar->OpenListQueue);
+ OpenListNode *res = (OpenListNode*)aystar->OpenListQueue.Pop();
if (res != NULL) {
Hash_Delete(&aystar->OpenListHash, res->path.node.tile, res->path.node.direction);
}