From b9490877a476a09931547e5c9cb3dbaa12276541 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 6 Nov 2017 22:05:40 -1000 Subject: [PATCH] Iterator fix --- hecl/extern/boo | 2 +- hecl/lib/ProjectPath.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hecl/extern/boo b/hecl/extern/boo index 6c3a35f15..2cd7de7a2 160000 --- a/hecl/extern/boo +++ b/hecl/extern/boo @@ -1 +1 @@ -Subproject commit 6c3a35f15d06c84c7f7be9055993c14715323145 +Subproject commit 2cd7de7a284b2bdc6bc61843d4e16940fde35f62 diff --git a/hecl/lib/ProjectPath.cpp b/hecl/lib/ProjectPath.cpp index e7a2b1155..1e305f3e9 100644 --- a/hecl/lib/ProjectPath.cpp +++ b/hecl/lib/ProjectPath.cpp @@ -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;