Tolerate blank lines in buildings lists

This commit is contained in:
James Turner 2021-01-08 19:39:37 +00:00
parent 9fbf56004b
commit 14494afd2f

View File

@ -441,6 +441,10 @@ typedef QuadTreeBuilder<LOD*, SGBuildingBin::BuildingInstance, MakeBuildingLeaf,
if (hash_pos != std::string::npos)
line.resize(hash_pos);
if (line.empty()) {
continue; // skip blank lines
}
// and process further
std::stringstream in(line);