diff --git a/Dev/Cpp/Effekseer/Effekseer/Utils/String.h b/Dev/Cpp/Effekseer/Effekseer/Utils/String.h index b1bbb0826f..e8ea9642a5 100644 --- a/Dev/Cpp/Effekseer/Effekseer/Utils/String.h +++ b/Dev/Cpp/Effekseer/Effekseer/Utils/String.h @@ -370,7 +370,7 @@ class PathHelper static STRING Combine(const STRING& path1, const STRING& path2) { STRING ret = path1; - if (!IsSeparator(ret.back())) + if (ret.size() > 0 && !IsSeparator(ret.back())) { ret += static_cast('/'); }