This commit is contained in:
A-lex-Ra 2024-01-14 19:34:46 +06:00
commit d183c1ae70

View file

@ -55,9 +55,7 @@ int call_func(lua_State* L, int argc, const std::string& name) {
std::cerr << lua_tostring(L,-1) << std::endl; std::cerr << lua_tostring(L,-1) << std::endl;
return 0; return 0;
} }
int res_count = lua_tointeger(L, -1); return 1;
lua_pop(L, -1);
return res_count;
} }
void scripting::initialize(EnginePaths* paths) { void scripting::initialize(EnginePaths* paths) {