summaryrefslogtreecommitdiff
path: root/src/landscape.cpp
diff options
context:
space:
mode:
authorJ0an Josep <juanjo.ng.83@gmail.com>2019-01-14 23:13:12 +0100
committerCharles Pigott <charlespigott@googlemail.com>2019-01-31 22:15:56 +0000
commit19be1f4ace00f784270218cdb4041f302d2198c9 (patch)
tree7cdc47ff3b66afce019aa011b9d803d486d87da9 /src/landscape.cpp
parent96c5e5e73adf5a0a902d0a305730eb18da0c17bd (diff)
downloadopenttd-19be1f4ace00f784270218cdb4041f302d2198c9.tar.xz
Codechange: [NPF] Add some consts.
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r--src/landscape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index 991a445ad..2f14a69e4 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -1098,7 +1098,7 @@ static bool FlowsDown(TileIndex begin, TileIndex end)
}
/* AyStar callback for checking whether we reached our destination. */
-static int32 River_EndNodeCheck(AyStar *aystar, OpenListNode *current)
+static int32 River_EndNodeCheck(const AyStar *aystar, const OpenListNode *current)
{
return current->path.node.tile == *(TileIndex*)aystar->user_target ? AYSTAR_FOUND_END_NODE : AYSTAR_DONE;
}