From 192e0bff110d8ebdde44879444b2ea07130fce99 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 28 Dec 2015 21:12:56 +0000 Subject: [PATCH] EgtNumKernel : - correzione a ShortestPath per crash a 64 bit. --- ShortestPathTsp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShortestPathTsp.cpp b/ShortestPathTsp.cpp index c5ad011..871ac3d 100644 --- a/ShortestPathTsp.cpp +++ b/ShortestPathTsp.cpp @@ -244,7 +244,7 @@ ShortestPath::CalcDistances( void) if ( m_Points[i].dXi > fXmax) fXmax = (float) m_Points[i].dXi ; if ( m_Points[i].dXf < fXmin) - fXmin = (float) m_Points[i-1].dXf ; + fXmin = (float) m_Points[i].dXf ; if ( m_Points[i].dXf > fXmax) fXmax = (float) m_Points[i].dXf ; // Y