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
commitf24122ba3db6e6afdfcc9adfeee3cd1ecc3087e3 (patch)
treefad67bafc5c35366a2e23b9a1b2d99f2c6e8bfce /src
parent0b536291e2d808ac69778fbef1236fe7f10e6189 (diff)
downloadopenttd-f24122ba3db6e6afdfcc9adfeee3cd1ecc3087e3.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();