Bugfix. Building pedestrian and bicycle routes with maps without altitude section.

This commit is contained in:
Vladimir Byko-Ianko 2016-07-29 11:32:53 +03:00
parent 796affb8c3
commit 83c098f9e5

View file

@ -54,7 +54,10 @@ AltitudeLoader::AltitudeLoader(MwmValue const & mwmValue)
}
}
bool AltitudeLoader::HasAltitudes() const { return m_header.m_minAltitude != kInvalidAltitude; }
bool AltitudeLoader::HasAltitudes() const
{
return m_reader != nullptr && m_header.m_minAltitude != kInvalidAltitude;
}
TAltitudes const & AltitudeLoader::GetAltitudes(uint32_t featureId, size_t pointCount)
{