diff options
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 8de0fc3b40..eed436232c 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -348,7 +348,6 @@ static bool create_dirs(const std::string &dir) for (int i = 0, size = segments.size(); i < size; ++i) { path += segments[i]; - path += FILE_SEPARATOR; // Handle absolute paths correctly. if (i == 0 && dir.size() && dir[0] == FILE_SEPARATOR) @@ -356,6 +355,8 @@ static bool create_dirs(const std::string &dir) if (!dir_exists(path) && create_directory(path.c_str())) return (false); + + path += FILE_SEPARATOR; } return (true); } |