summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2007-02-21 21:56:07 +0000
committerKUDr <KUDr@openttd.org>2007-02-21 21:56:07 +0000
commitf1ee924fc5c4781614c3d5405e8f4aa27464a57c (patch)
treefad67bafc5c35366a2e23b9a1b2d99f2c6e8bfce /src
parent84754e45d655ea5fa666c0bfe2138ae8df5830a7 (diff)
downloadopenttd-f1ee924fc5c4781614c3d5405e8f4aa27464a57c.tar.xz
(svn r8836) [YAPF] -Fix[FS#641]: Assertion: 'IsTileDepotType(depot_tile, TRANSPORT_ROAD)' failed (Karsten)
-don't tell that we found destination if the best direction was only guessed
Diffstat (limited to 'src')
-rw-r--r--src/yapf/yapf_base.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yapf/yapf_base.hpp b/src/yapf/yapf_base.hpp
index e2a0a799e..3dfa9e908 100644
--- a/src/yapf/yapf_base.hpp
+++ b/src/yapf/yapf_base.hpp
@@ -134,7 +134,7 @@ public:
}
}
- bool bDestFound = (m_pBestDestNode != NULL);
+ bool bDestFound = (m_pBestDestNode != NULL) && (m_pBestDestNode != m_pBestIntermediateNode);
#ifndef NO_DEBUG_MESSAGES
perf.Stop();