Fix potential crashes

- some compilers have problems with using locally redeclared loop vars after an internal loop
 - fix ordering of conditional checks
This commit is contained in:
Andy Maloney 2013-12-04 16:50:23 -05:00
parent 65099897f4
commit 0db6e1bc57
3 changed files with 6 additions and 6 deletions

View file

@ -408,7 +408,7 @@ String Path::getDirectory(U32 count) const
U32 end = offset;
while (mPath[end] != '/' && end < mPath.length())
while (end < mPath.length() && mPath[end] != '/')
end++;
return mPath.substr(offset,end - offset);