(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
--- 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();