(svn r8836) [YAPF] -Fix[FS#641]: Assertion: 'IsTileDepotType(depot_tile, TRANSPORT_ROAD)' failed (Karsten)
authorKUDr
Wed, 21 Feb 2007 21:56:07 +0000
changeset 6101 cbc354e6619d
parent 6100 6b50beea81cd
child 6102 307c3273b22b
(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
src/yapf/yapf_base.hpp
--- a/src/yapf/yapf_base.hpp	Wed Feb 21 20:05:05 2007 +0000
+++ b/src/yapf/yapf_base.hpp	Wed Feb 21 21:56:07 2007 +0000
@@ -134,7 +134,7 @@
 			}
 		}
 
-		bool bDestFound = (m_pBestDestNode != NULL);
+		bool bDestFound = (m_pBestDestNode != NULL) && (m_pBestDestNode != m_pBestIntermediateNode);
 
 #ifndef NO_DEBUG_MESSAGES
 		perf.Stop();