From 35bec8d2731fb775248ff3634bde538d77d6f2a0 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 16 Dec 2020 03:08:41 +1100 Subject: [PATCH] Lua engine: fix a dumb copy/paste error and an unused lambda capture from previous commit. --- src/frontend/mame/luaengine.ipp | 4 ++-- src/frontend/mame/luaengine_input.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/mame/luaengine.ipp b/src/frontend/mame/luaengine.ipp index d6ca0e981a0..8d51fb0a092 100644 --- a/src/frontend/mame/luaengine.ipp +++ b/src/frontend/mame/luaengine.ipp @@ -268,8 +268,8 @@ bool sol_lua_check(sol::types, lua_State *L, int index, Handler // map_handler_type customisation int sol_lua_push(sol::types, lua_State *L, map_handler_type &&value); -// endianness customisation -int sol_lua_push(sol::types, lua_State *L, map_handler_type &&value); +// endianness_t customisation +int sol_lua_push(sol::types, lua_State *L, endianness_t &&value); template diff --git a/src/frontend/mame/luaengine_input.cpp b/src/frontend/mame/luaengine_input.cpp index 866117a29b2..2e13262db78 100644 --- a/src/frontend/mame/luaengine_input.cpp +++ b/src/frontend/mame/luaengine_input.cpp @@ -144,7 +144,7 @@ void lua_engine::initialize_input(sol::table &emu) ioport_manager_type["count_players"] = &ioport_manager::count_players; ioport_manager_type["type_group"] = &ioport_manager::type_group; ioport_manager_type["type_seq"] = - [this] (ioport_manager &im, ioport_type type, int player, std::string const &seq_type_string) + [] (ioport_manager &im, ioport_type type, int player, std::string const &seq_type_string) { input_seq_type seq_type = s_seq_type_parser(seq_type_string); return im.type_seq(type, player, seq_type);