diff --git a/filesel/pfilesel.c b/filesel/pfilesel.c index 42959f6b..1b284b5b 100644 --- a/filesel/pfilesel.c +++ b/filesel/pfilesel.c @@ -3573,8 +3573,11 @@ signed int fsFileSelect(void) /* We delay mdbScan for remote files until this stage */ if (m && m->file && (m->file->compression >= COMPRESSION_REMOTE) && !(m->flags & MODLIST_FLAG_SCANNED)) { - mdbScan (m->file, m->mdb_ref, 0); - m->flags |= MODLIST_FLAG_SCANNED; + if (m->mdb_ref != UINT32_MAX) /* just in-case fsShowAllFiles added this file */ + { + mdbScan (m->file, m->mdb_ref, 0); + m->flags |= MODLIST_FLAG_SCANNED; + } } if (win) {