From ec14050890fb4705f1822abd12c60a2d39a1384b Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Sat, 22 Dec 2018 16:52:05 +0000 Subject: [PATCH] General tiles with only BUILDING_LIST Bug found during code-read. If tile just contained BUILDING_LIST entries (i.e. no OBJECT_STATIC or OBJECT_SIGN entries), then it would not generate. --- simgear/scene/tgdb/ReaderWriterSTG.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/tgdb/ReaderWriterSTG.cxx b/simgear/scene/tgdb/ReaderWriterSTG.cxx index 46f73ba9..4a79e8ec 100644 --- a/simgear/scene/tgdb/ReaderWriterSTG.cxx +++ b/simgear/scene/tgdb/ReaderWriterSTG.cxx @@ -586,7 +586,7 @@ struct ReaderWriterSTG::_ModelBin { i->_elev += elevation(*terrainGroup, SGGeod::fromDeg(i->_lon, i->_lat)); } - if (_objectStaticList.empty() && _signList.empty()) { + if (_objectStaticList.empty() && _signList.empty() && (_buildingListList.size() == 0)) { // The simple case, just return the terrain group return terrainGroup.release(); } else {