diff --git a/source/scriptinterface/ScriptInterface.cpp b/source/scriptinterface/ScriptInterface.cpp index 9b69a62c12..65f69b98a1 100644 --- a/source/scriptinterface/ScriptInterface.cpp +++ b/source/scriptinterface/ScriptInterface.cpp @@ -1201,7 +1201,7 @@ bool ScriptInterface::LoadScript(const VfsPath& filename, const std::string& cod uint lineNo = 1; JS::RootedFunction func(m->m_cx, - JS_CompileUCFunction(m->m_cx, m->m_glob, utf8_from_wstring(filename.string()).c_str(), 0, NULL, + JS_CompileUCFunction(m->m_cx, m->m_glob, NULL, 0, NULL, reinterpret_cast (codeUtf16.c_str()), (uint)(codeUtf16.length()), utf8_from_wstring(filename.string()).c_str(), lineNo) );