summaryrefslogtreecommitdiff
path: root/src/ai/trolly
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-27 08:53:21 +0000
committerrubidium <rubidium@openttd.org>2007-05-27 08:53:21 +0000
commit3b267df0af3539d0a45758d0b7f3a489e580e542 (patch)
tree633ea6212d08f0951947b06005ecce1914898f88 /src/ai/trolly
parent4ff33af40676f816df99d7907abeac820fb344e7 (diff)
downloadopenttd-3b267df0af3539d0a45758d0b7f3a489e580e542.tar.xz
(svn r9954) -Fix [FS#811]: trolley AI crashed when trying to determine what the roadbits are.
Diffstat (limited to 'src/ai/trolly')
-rw-r--r--src/ai/trolly/pathfinder.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}