[lua] Fix context used in App.useTool()

This commit is contained in:
David Capello 2022-02-11 10:41:56 -03:00
parent 0c1e08138e
commit 8b5133b4c0

View File

@ -433,7 +433,7 @@ int App_useTool(lua_State* L)
// Do the tool loop
type = lua_getfield(L, 1, "points");
if (type == LUA_TTABLE) {
InlineCommandExecution inlineCmd(UIContext::instance());
InlineCommandExecution inlineCmd(ctx);
std::unique_ptr<tools::ToolLoop> loop(
create_tool_loop_for_script(ctx, site, params));