From 4700955480fbe20bd384b7943399e3d7fc118405 Mon Sep 17 00:00:00 2001 From: frohlich Date: Mon, 25 May 2009 04:59:51 +0000 Subject: [PATCH] Avoid empty search path extensions for the case that only the bucket index number is given. Modified Files: scene/tgdb/TileEntry.cxx --- simgear/scene/tgdb/TileEntry.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simgear/scene/tgdb/TileEntry.cxx b/simgear/scene/tgdb/TileEntry.cxx index 41f9dedd..76416a26 100644 --- a/simgear/scene/tgdb/TileEntry.cxx +++ b/simgear/scene/tgdb/TileEntry.cxx @@ -265,7 +265,9 @@ TileEntry::loadTileByFileName(const string& fileName, osgDB::FilePathList path_list=options->getDatabasePathList(); // Make sure we find the original filename here... - path_list.push_front(osgDB::getFilePath(fileName)); + std::string filePath = osgDB::getFilePath(fileName); + if (!filePath.empty()) + path_list.push_front(filePath); // scan and parse all files and store information for (unsigned int i = 0; i < path_list.size(); i++) { -- 2.39.5