fix invalid memory reference
This commit is contained in:
parent
31bbf118e1
commit
e607a587c1
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user