Skip to content

Commit

Permalink
Fixed Taling Slash in virtual mappings would prevent mappings from wo…
Browse files Browse the repository at this point in the history
…rking
  • Loading branch information
X39 committed Dec 23, 2019
1 parent 0717ac9 commit e453730
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ void sqf::filesystem::addPathMappingInternal(std::filesystem::path virt, std::fi
std::vector<std::string> virtElements;

for (auto& el : virt) { //Split path into elements
if (el.string().empty())
{
continue;
}
virtElements.emplace_back(el.string());
}

Expand Down

0 comments on commit e453730

Please sign in to comment.