From af9c3d7de7e35632d046575b5e4809a04abec816 Mon Sep 17 00:00:00 2001 From: aunsane Date: Thu, 28 Sep 2017 20:16:27 +0300 Subject: MirLua: added CMLuaEnviroment to execute lua code from extetnal source in sandbox --- plugins/MirLua/src/m_hotkeys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/MirLua/src/m_hotkeys.cpp') diff --git a/plugins/MirLua/src/m_hotkeys.cpp b/plugins/MirLua/src/m_hotkeys.cpp index faf1dbe6d0..6ab3f07625 100644 --- a/plugins/MirLua/src/m_hotkeys.cpp +++ b/plugins/MirLua/src/m_hotkeys.cpp @@ -41,7 +41,7 @@ static int hotkeys_Register(lua_State *L) HOTKEYDESC hk; MakeHotkey(L, hk); - int hScriptLangpack = CMLuaScript::GetScriptIdFromEnviroment(L); + int hScriptLangpack = CMLuaEnviroment::GetEnviromentId(L); INT_PTR res = Hotkey_Register(&hk, hScriptLangpack); lua_pushboolean(L, res); -- cgit v1.2.3