summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_options.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-09-28 20:16:27 +0300
committeraunsane <aunsane@gmail.com>2017-09-29 00:38:40 +0300
commitaf9c3d7de7e35632d046575b5e4809a04abec816 (patch)
treed25ed109332d38540d6b044bd4471e4fc2d1b0c5 /plugins/MirLua/src/m_options.cpp
parentb640e652b54030de26a22f57494fa71561dd4e99 (diff)
MirLua: added CMLuaEnviroment to execute lua code from extetnal source in sandbox
Diffstat (limited to 'plugins/MirLua/src/m_options.cpp')
-rw-r--r--plugins/MirLua/src/m_options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/m_options.cpp b/plugins/MirLua/src/m_options.cpp
index 95330c4bea..ee968a6982 100644
--- a/plugins/MirLua/src/m_options.cpp
+++ b/plugins/MirLua/src/m_options.cpp
@@ -44,7 +44,7 @@ public:
void MakeOptionDialogPage(lua_State *L, OPTIONSDIALOGPAGE &odp)
{
odp.hInstance = g_hInstance;
- odp.hLangpack = CMLuaScript::GetScriptIdFromEnviroment(L);
+ odp.hLangpack = CMLuaEnviroment::GetEnviromentId(L);
lua_getfield(L, -1, "Flags");
odp.flags = luaL_optinteger(L, -1, ODPF_BOLDGROUPS | ODPF_UNICODE | ODPF_DONTTRANSLATE);