changeset 6101:e9a243908c20 draft

(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
author KUDr <KUDr@openttd.org>
date Wed, 21 Feb 2007 21:56:07 +0000
parents 9bff2e15c516
children 02d711c318c9
files src/yapf/yapf_base.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/yapf/yapf_base.hpp
+++ b/src/yapf/yapf_base.hpp
@@ -134,7 +134,7 @@
 			}
 		}
 
-		bool bDestFound = (m_pBestDestNode != NULL);
+		bool bDestFound = (m_pBestDestNode != NULL) && (m_pBestDestNode != m_pBestIntermediateNode);
 
 #ifndef NO_DEBUG_MESSAGES
 		perf.Stop();