summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-04-20 08:15:39 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-04-20 08:15:39 -0500
commit479e0cf9271d34f861d9d8013745613a9ee2b988 (patch)
tree0440e0c2477463150b726e447374e8767dc8e1cd
parent512777046fdd04f2776aa099ead5d8fad58bc360 (diff)
luaengine: shrug (nw)
-rw-r--r--src/emu/luaengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/luaengine.cpp b/src/emu/luaengine.cpp
index 682066e8460..012a41f723d 100644
--- a/src/emu/luaengine.cpp
+++ b/src/emu/luaengine.cpp
@@ -712,7 +712,7 @@ luabridge::LuaRef lua_engine::l_dev_get_memspaces(const device_t *d)
lua_State *L = luaThis->m_lua_state;
luabridge::LuaRef sp_table = luabridge::LuaRef::newTable(L);
- if(!&dev->memory())
+ if(!dynamic_cast<device_memory_interface *>(dev))
return sp_table;
for (address_spacenum sp = AS_0; sp < ADDRESS_SPACES; ++sp) {
@@ -735,7 +735,7 @@ luabridge::LuaRef lua_engine::l_dev_get_states(const device_t *d)
lua_State *L = luaThis->m_lua_state;
luabridge::LuaRef st_table = luabridge::LuaRef::newTable(L);
- if(!&dev->state())
+ if(!dynamic_cast<device_state_interface *>(dev))
return st_table;
for (device_state_entry &s : dev->state().state_entries())