From 53380fc04797450d74f7e7c7a6e9461c2a1a2d64 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 27 May 2007 08:53:21 +0000 Subject: [PATCH] (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(-) diff --git a/src/ai/trolly/pathfinder.cpp b/src/ai/trolly/pathfinder.cpp index e7102d6421..d117f48dd8 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; }