summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/variables_loader.cpp6
1 files 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
+}