1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 18:32:36 +00:00

Do not search if it is not used

This commit is contained in:
CedricMocquillon 2021-05-06 13:28:06 +02:00
parent 813b8ee0d1
commit a885134868

View File

@ -539,7 +539,6 @@ namespace Resource
if (mVFS->exists(normalized))
{
Log(Debug::Error) << "Failed to load '" << name << "': " << e.what() << ", using marker_error." << sMeshTypes[i] << " instead";
Files::IStreamPtr file = mVFS->get(normalized);
loaded = load(normalized, mVFS, mImageManager, mNifFileManager);
break;
}