From 07b4577de51f6be74e6aec6221d850793296e68e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 6 Jan 2017 01:02:52 +0200 Subject: [PATCH] Only use source files that are actually files And not, say, directories. --- source/component.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/component.cpp b/source/component.cpp index bebe3f7..e8fdd58 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -110,7 +110,9 @@ Component::SourceList Component::collect_source_files() const continue; overlay_files.insert(*k); } - files.push_back(*j / *k); + FS::Path fn = *j / *k; + if(!FS::is_dir(fn)) + files.push_back(fn); } } } -- 2.45.2