fix invalid memory reference

This commit is contained in:
falsycat 2022-10-29 01:14:15 +09:00
parent 31bbf118e1
commit e607a587c1

View File

@ -39,7 +39,8 @@ class ShaderPreproc final : public nf7::Context,
return pro_.future();
}
const std::vector<std::filesystem::path>& nfiles() const noexcept {
return *nfiles_;
static const std::vector<std::filesystem::path> kEmpty = {};
return nfiles_? *nfiles_: kEmpty;
}
private: