mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-12 20:45:52 +00:00
Iterator fix
This commit is contained in:
parent
a3b9a32633
commit
b9490877a4
2
hecl/extern/boo
vendored
2
hecl/extern/boo
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 6c3a35f15d06c84c7f7be9055993c14715323145
|
Subproject commit 2cd7de7a284b2bdc6bc61843d4e16940fde35f62
|
@ -323,7 +323,7 @@ ProjectRootPath SearchForProject(const SystemString& path, SystemString& subpath
|
|||||||
SystemString::const_iterator origEnd = testRoot.getAbsolutePath().end();
|
SystemString::const_iterator origEnd = testRoot.getAbsolutePath().end();
|
||||||
while (end != origEnd && *end != _S('/') && *end != _S('\\'))
|
while (end != origEnd && *end != _S('/') && *end != _S('\\'))
|
||||||
++end;
|
++end;
|
||||||
if (*end == _S('/') || *end == _S('\\'))
|
if (end != origEnd && (*end == _S('/') || *end == _S('\\')))
|
||||||
++end;
|
++end;
|
||||||
subpathOut.assign(end, origEnd);
|
subpathOut.assign(end, origEnd);
|
||||||
return newRootPath;
|
return newRootPath;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user