forked from organicmaps/organicmaps
Osrm 2 feature map fix for empty graphs.
This commit is contained in:
parent
66550bd3ae
commit
aab8f88370
1 changed files with 2 additions and 0 deletions
|
@ -153,6 +153,8 @@ void OsrmFtSegMapping::Load(FilesMappingContainer & cont, platform::LocalCountry
|
|||
{
|
||||
ReaderSource<FileReader> src(cont.GetReader(ROUTING_NODEIND_TO_FTSEGIND_FILE_TAG));
|
||||
uint32_t const count = ReadVarUint<uint32_t>(src);
|
||||
if (count == 0)
|
||||
return;
|
||||
m_offsets.resize(count);
|
||||
for (uint32_t i = 0; i < count; ++i)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue