From d58d43fa0fd49145cd04a7a6027e6ee754adfa0a Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Fri, 17 Jun 2022 12:01:14 -0400 Subject: Fixup - Can now have levels without a proc.lua Checked existence of wrong file for loading defaults --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3-54-g00ecf