diff options
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llviewermenu.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 2138da4c64..2d94b4da9f 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -9471,12 +9471,7 @@ void lua_run_script(const LLSD& userdata) LL_WARNS() << "Script name is not specified" << LL_ENDL; return; } - fsyspath fs_script_path(script_path); - script_path = fs_script_path.lexically_normal().u8string(); - if (!fs_script_path.is_absolute()) - { - script_path = (fsyspath(gDirUtilp->getExpandedFilename(LL_PATH_SCRIPTS, "lua")) / script_path).u8string(); - } + LLLUAmanager::runScriptFile(script_path); } |