2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

Iterator fix

This commit is contained in:
Jack Andersen
2017-11-06 22:05:40 -10:00
parent a3b9a32633
commit b9490877a4
2 changed files with 2 additions and 2 deletions

View File

@@ -323,7 +323,7 @@ ProjectRootPath SearchForProject(const SystemString& path, SystemString& subpath
SystemString::const_iterator origEnd = testRoot.getAbsolutePath().end();
while (end != origEnd && *end != _S('/') && *end != _S('\\'))
++end;
if (*end == _S('/') || *end == _S('\\'))
if (end != origEnd && (*end == _S('/') || *end == _S('\\')))
++end;
subpathOut.assign(end, origEnd);
return newRootPath;