Avoid spitting gazillion 'Cannot find image file "" ' message on the console while loading random objects
This commit is contained in:
@@ -100,8 +100,8 @@ public:
|
|||||||
string fileName = getSimpleFileName(fullFilePath);
|
string fileName = getSimpleFileName(fullFilePath);
|
||||||
// The name that should be found with the current database path
|
// The name that should be found with the current database path
|
||||||
string fullLiveryFile = findFileInPath(fileName, mPathList);
|
string fullLiveryFile = findFileInPath(fileName, mPathList);
|
||||||
// If they are identical then there is nothing to do
|
// If it is empty or they are identical then there is nothing to do
|
||||||
if (fullLiveryFile == fullFilePath)
|
if (fullLiveryFile.empty() || fullLiveryFile == fullFilePath)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
image = readImageFile(fullLiveryFile);
|
image = readImageFile(fullLiveryFile);
|
||||||
|
|||||||
Reference in New Issue
Block a user