mirror of
https://github.com/holub/mame
synced 2025-06-01 10:31:48 +03:00
MT#7408: Fixed issue that caused most LUA callbacks to be duplicated (#5592)
This commit is contained in:
parent
5964e58cdf
commit
a17315b742
@ -638,13 +638,6 @@ int lua_engine::enumerate_functions(const char *id, std::function<bool(const sol
|
||||
count++;
|
||||
if (!cont)
|
||||
break;
|
||||
|
||||
auto ret = invoke(func.second.as<sol::protected_function>());
|
||||
if (!ret.valid())
|
||||
{
|
||||
sol::error err = ret;
|
||||
osd_printf_error("[LUA ERROR] in execute_function: %s\n", err.what());
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user