Fix crash in CFileSystem::getRelativeFilename

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3771 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2011-05-31 12:22:06 +00:00
parent 37a6fef54a
commit 30cf180d28
1 changed files with 1 additions and 1 deletions

View File

@ -709,7 +709,7 @@ path CFileSystem::getRelativeFilename(const path& filename, const path& director
core::list<io::path>::ConstIterator it1,it2;
it1=list1.begin();
it2=list2.begin();
for (; i<list1.size() && (*it1==*it2); ++i)
for (; i<list1.size() && i<list2.size() && (*it1==*it2); ++i)
{
++it1;
++it2;