summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-11-05 17:50:10 +0000
committertruelight <truelight@openttd.org>2007-11-05 17:50:10 +0000
commitc3c4c894dc7c9b7877c351882f79dff953faf1d1 (patch)
treeda3cecaf44b5d69713180a0c9c455c58c1661dde
parent7131f6262dc2486aaccdb9797340e851454161b9 (diff)
downloadopenttd-c3c4c894dc7c9b7877c351882f79dff953faf1d1.tar.xz
(svn r11385) -Fix r11383: bool operation can be hard to translate for some people ;) (tnx fjb for noticing this bug ;))
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index e87127611..0bb6c80c4 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1211,7 +1211,7 @@ static Trackdir RoadFindPathToDest(Vehicle* v, TileIndex tile, DiagDirection ent
}
/* Only one track to choose between? */
- if (KillFirstBit(trackdirs) != TRACKDIR_BIT_NONE) {
+ if (KillFirstBit(trackdirs) == TRACKDIR_BIT_NONE) {
return_track(FindFirstBit2x64(trackdirs));
}