Codechange: [NPF] Add some consts.

This commit is contained in:
J0an Josep
2019-01-14 23:13:12 +01:00
committed by Charles Pigott
parent 96c5e5e73a
commit 19be1f4ace
3 changed files with 6 additions and 6 deletions

View File

@@ -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;
}