diff options
Diffstat (limited to 'src/emu/luaengine.c')
-rw-r--r-- | src/emu/luaengine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/luaengine.c b/src/emu/luaengine.c index f31e7c4550d..12be9947cae 100644 --- a/src/emu/luaengine.c +++ b/src/emu/luaengine.c @@ -1044,7 +1044,7 @@ void lua_engine::periodic_check() osd_lock_acquire(lock); if (msg.ready == 1) { lua_settop(m_lua_state, 0); - int status = luaL_loadbuffer(m_lua_state, msg.text.cstr(), strlen(msg.text.cstr()), "=stdin"); + int status = luaL_loadbuffer(m_lua_state, msg.text.c_str(), strlen(msg.text.c_str()), "=stdin"); if (incomplete(status)==0) /* cannot try to add lines? */ { if (status == LUA_OK) status = docall(0, LUA_MULTRET); |