workaround non-initialized value if its not possible to locate an edge close to a coordinate

This commit is contained in:
Dennis Luxen 2010-10-26 09:54:49 +00:00
parent b1ee58b8e8
commit ddad5a0523

View File

@ -319,7 +319,7 @@ public:
} }
} }
_Coordinate nearest, tmp; _Coordinate nearest(numeric_limits<int>::max(), numeric_limits<int>::max()), tmp;
double dist = numeric_limits<double>::max(); double dist = numeric_limits<double>::max();
timestamp = get_timestamp(); timestamp = get_timestamp();
for(std::vector<_Edge>::iterator it = candidates.begin(); it != candidates.end(); it++) for(std::vector<_Edge>::iterator it = candidates.begin(); it != candidates.end(); it++)