diff --git a/vst/SfizzFileScan.cpp b/vst/SfizzFileScan.cpp index a56f2e4a..441f9e80 100644 --- a/vst/SfizzFileScan.cpp +++ b/vst/SfizzFileScan.cpp @@ -31,7 +31,7 @@ bool SfzFileScan::locateRealFile(const fs::path& pathOrig, fs::path& pathFound) std::unique_lock lock { mutex }; refreshScan(); - auto it = file_index_.find(keyOf(pathOrig)); + auto it = file_index_.find(keyOf(pathOrig.filename())); if (it == file_index_.end()) return false;