generation.load_fragment fix

This commit is contained in:
RomanDonw 2025-10-10 20:59:01 +10:00
parent 51a8ed6737
commit b4ba2da955

View File

@ -44,7 +44,7 @@ static int l_create_fragment(lua::State* L) {
static int l_load_fragment(lua::State* L) {
dv::value map;
if (!lua::isstring(L, 1)) {
if (lua::isstring(L, 1)) {
io::path path = lua::require_string(L, 1);
if (!io::exists(path)) {
throw std::runtime_error("file "+path.string()+" does not exist");