From: Helge Norberg Date: Tue, 15 Nov 2016 16:34:13 +0000 (+0100) Subject: [flash] Fixed bug where template-host copying didn't work. X-Git-Tag: 2.1.0_Beta1~5 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=49949fedc13aff4be9a7c40c72a0a96e7670836c;p=casparcg [flash] Fixed bug where template-host copying didn't work. --- diff --git a/common/env.cpp b/common/env.cpp index 1ce341d46..e7b78298c 100644 --- a/common/env.cpp +++ b/common/env.cpp @@ -140,7 +140,7 @@ void configure(const std::wstring& filename) if(it->path().wstring().find(L".fth") != std::wstring::npos) { auto from_path = *it; - auto to_path = boost::filesystem::path(ftemplate + L"/" + it->path().wstring()); + auto to_path = boost::filesystem::path(ftemplate + L"/" + it->path().filename().wstring()); if(boost::filesystem::exists(to_path)) boost::filesystem::remove(to_path);