diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-04-12 19:28:29 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-04-12 19:31:21 +0300 |
commit | 396ae60e1528515d0cbdfc4290b24ccb172998c8 (patch) | |
tree | 779f80cf4a91db7a43622a9a6d50edc66ce125a8 /indra/newview/llluamanager.cpp | |
parent | 5ce6c02ab3db983c7c876e5a41550bd94e53d0a7 (diff) |
'Lua Scripts' floater clean up
Diffstat (limited to 'indra/newview/llluamanager.cpp')
-rw-r--r-- | indra/newview/llluamanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llluamanager.cpp b/indra/newview/llluamanager.cpp index 344ab1bb99..853ed5a634 100644 --- a/indra/newview/llluamanager.cpp +++ b/indra/newview/llluamanager.cpp @@ -192,14 +192,14 @@ void LLLUAmanager::runScriptFile(const std::string &filename, script_result_fn r lua_callbacks(L)->interrupt = [](lua_State *L, int gc) { + // skip if we're interrupting only for garbage collection if (gc >= 0) return; - std::set<std::string> scripts = LLLUAmanager::getTerminationList(); - std::string coro = LLCoros::getName(); - if (scripts.find(coro) != scripts.end()) + auto it = sTerminationList.find(LLCoros::getName()); + if (it != sTerminationList.end()) { - sTerminationList.erase(coro); + sTerminationList.erase(it); lluau::error(L, "Script was terminated"); } }; |