From ef8cc49175ae8f97c6659c3acd13fdb4434cd535 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 2 Dec 2009 09:31:38 +0000 Subject: (svn r18370) -Codechange: push some constness/type strictness into the ship pathfinders --- src/ship_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ship_cmd.cpp') diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index 1d8943a15..4ce5798c6 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -362,7 +362,7 @@ static void ShipArrivesAt(const Vehicle *v, Station *st) /** returns the track to choose on the next tile, or -1 when it's better to * reverse. The tile given is the tile we are about to enter, enterdir is the * direction in which we are entering the tile */ -static Track ChooseShipTrack(Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks) +static Track ChooseShipTrack(const Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks) { assert(IsValidDiagDirection(enterdir)); -- cgit v1.2.3-54-g00ecf