summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/luaengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/luaengine.cpp')
-rw-r--r--src/frontend/mame/luaengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp
index 84048cf7e57..4798d7ca9d4 100644
--- a/src/frontend/mame/luaengine.cpp
+++ b/src/frontend/mame/luaengine.cpp
@@ -710,7 +710,7 @@ void lua_engine::initialize()
if (ret == 1)
return luaL_error(L, "cannot wait from outside coroutine");
int ref = luaL_ref(L, LUA_REGISTRYINDEX);
- engine->machine().scheduler().timer_set(attotime::from_double(lua_tonumber(L, 1)), timer_expired_delegate(FUNC(lua_engine::resume), engine), ref, nullptr);
+ engine->machine().scheduler().timer_set(attotime::from_double(lua_tonumber(L, 1)), timer_expired_delegate(FUNC(lua_engine::resume), engine), ref);
return lua_yield(L, 0);
});
emu["lang_translate"] = sol::overload(
@@ -1894,7 +1894,7 @@ void lua_engine::close()
}
}
-void lua_engine::resume(void *ptr, int nparam)
+void lua_engine::resume(int nparam)
{
lua_rawgeti(m_lua_state, LUA_REGISTRYINDEX, nparam);
lua_State *L = lua_tothread(m_lua_state, -1);