diff options
author | KUDr <kudr@openttd.org> | 2007-02-21 21:56:07 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2007-02-21 21:56:07 +0000 |
commit | f24122ba3db6e6afdfcc9adfeee3cd1ecc3087e3 (patch) | |
tree | fad67bafc5c35366a2e23b9a1b2d99f2c6e8bfce | |
parent | 0b536291e2d808ac69778fbef1236fe7f10e6189 (diff) | |
download | openttd-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
-rw-r--r-- | src/yapf/yapf_base.hpp | 2 |
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(); |