From 12d07d0386488c5aeec88e11bc465e67a021db4e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Jul 2018 12:39:33 +0300 Subject: MirLua - fix for variables parser --- plugins/MirLua/src/variables_loader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/MirLua/src/variables_loader.cpp b/plugins/MirLua/src/variables_loader.cpp index c3cbd26c80..423b5aa475 100644 --- a/plugins/MirLua/src/variables_loader.cpp +++ b/plugins/MirLua/src/variables_loader.cpp @@ -166,7 +166,7 @@ INT_PTR FormatString(void *obj, WPARAM wParam, LPARAM) lua_pushstring(L, T2Utf(result)); - return (INT_PTR)result; + return (INT_PTR)result.detach(); } /***********************************************/ @@ -176,7 +176,7 @@ void CMLuaVariablesLoader::LoadVariables() if (ServiceExists(MS_VARS_FORMATSTRING)) return; - CreateServiceFunctionObj(MS_VARS_FORMATSTRING, FormatString, L); + // CreateServiceFunctionObj(MS_VARS_FORMATSTRING, FormatString, L); Log("Loading variables functions"); @@ -198,4 +198,4 @@ void CMLuaVariablesLoader::Load(lua_State *L) { CMLuaVariablesLoader loader(L); loader.LoadVariables(); -} \ No newline at end of file +} -- cgit v1.2.3