Make path check use absolutePaths on both sides. Fixes duplicated archive insertion problems.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2878 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2009-11-17 12:12:45 +00:00
parent 6c62592d5b
commit 590cd72782
1 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ bool CFileSystem::addFileArchive(const io::path& filename, bool ignoreCase,
// check if the archive was already loaded
for (i = 0; i < FileArchives.size(); ++i)
{
if (filename == FileArchives[i]->getFileList()->getPath())
if (getAbsolutePath(filename) == FileArchives[i]->getFileList()->getPath())
return true;
}