From 3b267df0af3539d0a45758d0b7f3a489e580e542 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 27 May 2007 08:53:21 +0000 Subject: (svn r9954) -Fix [FS#811]: trolley AI crashed when trying to determine what the roadbits are. --- src/ai/trolly/pathfinder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ai/trolly') diff --git a/src/ai/trolly/pathfinder.cpp b/src/ai/trolly/pathfinder.cpp index e7102d642..d117f48dd 100644 --- a/src/ai/trolly/pathfinder.cpp +++ b/src/ai/trolly/pathfinder.cpp @@ -284,9 +284,9 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr dir = 0; } else { // It already has road.. check if we miss any bits! - if ((GetRoadBits(ctile, ROADTYPE_ROAD) & dir) != dir) { + if ((GetAnyRoadBits(ctile, ROADTYPE_ROAD) & dir) != dir) { // We do miss some pieces :( - dir &= ~GetRoadBits(ctile, ROADTYPE_ROAD); + dir &= ~GetAnyRoadBits(ctile, ROADTYPE_ROAD); } else { dir = 0; } -- cgit v1.2.3-70-g09d2