src/ai/trolly/pathfinder.cpp
changeset 6943 1914f26aee04
parent 6722 8d6caeac4983
child 6946 a48b23f1cc8a
--- a/src/ai/trolly/pathfinder.cpp	Mon Jun 18 08:17:31 2007 +0000
+++ b/src/ai/trolly/pathfinder.cpp	Mon Jun 18 10:48:15 2007 +0000
@@ -23,7 +23,7 @@
 	Player *p = GetPlayer(_current_player);
 
 	if (dir == TEST_STATION_NO_DIR) {
-		int32 ret;
+		CommandCost ret;
 		// TODO: currently we only allow spots that can be access from al 4 directions...
 		//  should be fixed!!!
 		for (dir = 0; dir < 4; dir++) {
@@ -214,7 +214,7 @@
 // What tiles are around us.
 static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *current)
 {
-	int ret;
+	CommandCost ret;
 	int dir;
 
 	Ai_PathFinderInfo *PathFinderInfo = (Ai_PathFinderInfo*)aystar->user_target;