Tolerate blank lines in buildings lists

This commit is contained in:
James Turner
2021-01-20 11:35:33 +00:00
committed by James Turner
parent 001ae80723
commit 92d053d850
+4
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);