Fix bug with empty way-map.

This commit is contained in:
vng 2011-02-28 00:19:31 +02:00 committed by Alex Zolotarev
parent 42638a6fc9
commit 8fa7f6f5b9

View file

@ -88,6 +88,8 @@ protected:
template <class ToDo>
void ProcessWayPoints(way_map_t & m, ToDo toDo)
{
if (m.empty()) return;
uint64_t id = m.begin()->first;
uint64_t const first = id;