diff --git a/components/vfs/filesystemarchive.cpp b/components/vfs/filesystemarchive.cpp index 17f3891ec..6eef4b93a 100644 --- a/components/vfs/filesystemarchive.cpp +++ b/components/vfs/filesystemarchive.cpp @@ -55,12 +55,7 @@ namespace VFS bool FileSystemArchive::contains(const std::string& file, char (*normalize_function)(char)) const { - for (const auto& it : mIndex) - { - if(it.first == file) - return true; - } - return false; + return mIndex.find(file) != mIndex.end(); } std::string FileSystemArchive::getDescription() const