mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
luaengine.cpp: Fix actual unused lambda capture.
This commit is contained in:
parent
293deba33c
commit
8264d02dc6
@ -327,7 +327,7 @@ auto lua_engine::make_simple_callback_setter(void (T::*setter)(delegate<R ()> &&
|
||||
else if (cb.is<sol::protected_function>())
|
||||
{
|
||||
(self.*setter)(delegate<R ()>(
|
||||
[this, dflt, name, desc, cbfunc = cb.as<sol::protected_function>()] () -> R
|
||||
[this, dflt, desc, cbfunc = cb.as<sol::protected_function>()] () -> R
|
||||
{
|
||||
if constexpr (std::is_same_v<R, void>)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user