From b9729fb72ef38d39eac4fdbe00c50efe4b0fe0d2 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 15 Nov 2005 09:00:02 +0000 Subject: (svn r3185) const --- ai/default/default.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ai/default') diff --git a/ai/default/default.c b/ai/default/default.c index b627c3904..845428eeb 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -1852,7 +1852,7 @@ static bool AiEnumFollowTrack(TileIndex tile, AiRailPathFindData *a, int track, return false; } -static bool AiDoFollowTrack(Player *p) +static bool AiDoFollowTrack(const Player* p) { AiRailPathFindData arpfd; @@ -3194,7 +3194,7 @@ static void AiStateBuildRoadVehicles(Player *p) loco_id = _new_roadveh_id; for (i = 0; p->ai.order_list_blocks[i] != 0xFF; i++) { - AiBuildRec* aib = &p->ai.src + p->ai.order_list_blocks[i]; + const AiBuildRec* aib = &p->ai.src + p->ai.order_list_blocks[i]; bool is_pass = ( p->ai.cargo_type == CT_PASSENGERS || p->ai.cargo_type == CT_MAIL || -- cgit v1.2.3-54-g00ecf