workaround non-initialized value if its not possible to locate an edge close to a coordinate
This commit is contained in:
parent
b1ee58b8e8
commit
ddad5a0523
@ -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++)
|
||||||
|
Loading…
Reference in New Issue
Block a user