Lua engine: fix a dumb copy/paste error and an unused lambda capture from previous commit.

This commit is contained in:
Vas Crabb 2020-12-16 03:08:41 +11:00
parent 503332a986
commit 35bec8d273
2 changed files with 3 additions and 3 deletions

View File

@ -268,8 +268,8 @@ bool sol_lua_check(sol::types<osd_file::error>, lua_State *L, int index, Handler
// map_handler_type customisation
int sol_lua_push(sol::types<map_handler_type>, lua_State *L, map_handler_type &&value);
// endianness customisation
int sol_lua_push(sol::types<map_handler_type>, lua_State *L, map_handler_type &&value);
// endianness_t customisation
int sol_lua_push(sol::types<endianness_t>, lua_State *L, endianness_t &&value);
template <typename T>

View File

@ -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);