summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-07-08 17:36:17 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-07-08 17:36:17 -0500
commita4704047d5fc82da92cef8678d65ef91f3f7290c (patch)
treeeaf94c073e9fd5af0a0805620f63e8d5c80735ba
parent011dbbe713a3faa07538c9c2130befdf7871e389 (diff)
luaengine: fix auto (nw)
-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 af593fa6b66..c30527858bc 100644
--- a/src/frontend/mame/luaengine.cpp
+++ b/src/frontend/mame/luaengine.cpp
@@ -663,7 +663,7 @@ luabridge::LuaRef lua_engine::l_ioport_get_ports(const ioport_manager *m)
luabridge::LuaRef port_table = luabridge::LuaRef::newTable(L);
for (auto &port : im->ports()) {
- port_table[port.second->tag()] = &port;
+ port_table[port.second->tag()] = port.second.get();
}
return port_table;
@@ -762,7 +762,7 @@ luabridge::LuaRef lua_engine::l_dev_get_states(const device_t *d)
for (auto &s : dev->state().state_entries())
{
// XXX: refrain from exporting non-visible entries?
- st_table[s->symbol()] = &s;
+ st_table[s->symbol()] = s.get();
}
return st_table;