diff --git a/components/bsa/bsa_archive.cpp b/components/bsa/bsa_archive.cpp index ba7be5bfd..68c47a0ed 100644 --- a/components/bsa/bsa_archive.cpp +++ b/components/bsa/bsa_archive.cpp @@ -162,7 +162,7 @@ class DirArchive: public Ogre::FileSystemArchive //std::transform(file.begin(), file.end(), file.begin(), tolower); //boost::filesystem::path folderpath = folder; - std::vector current = m[folder]; + std::vector& current = m[folder]; for(std::vector::iterator iter = current.begin(); iter != current.end(); iter++) {