Tolerate blank lines in buildings lists

This commit is contained in:
James Turner 2021-01-08 19:39:37 +00:00 committed by James Turner
parent 001ae80723
commit 92d053d850

View File

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