diff options
author | Steph Enders <smenders@gmail.com> | 2022-06-17 12:01:14 -0400 |
---|---|---|
committer | Steph Enders <smenders@gmail.com> | 2022-06-17 12:01:14 -0400 |
commit | d58d43fa0fd49145cd04a7a6027e6ee754adfa0a (patch) | |
tree | 1cd0880b8c6e2d1df5e30daee781b1d6f0f6c7d3 /src | |
parent | 4358c229aae45d6f38e8fc9ec9d3392db3a0efbe (diff) |
Fixup - Can now have levels without a proc.lua
Checked existence of wrong file for loading defaults
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 23da08c..a4183f7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,7 +36,7 @@ int main(int argc, char **argv) { luaL_openlibs(L_default); init_c_api(L_default); - if (std::filesystem::exists(luaFile) && + if (std::filesystem::exists(DEFAULT_PROC) && luaL_dofile(L_default, DEFAULT_PROC) != LUA_OK) { std::cout << "Failed to load default proc" << std::endl; luaL_error(L_default, "Error: %s", lua_tostring(L_default, -1)); |