diff options
author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2017-07-28 21:31:59 +0300 |
---|---|---|
committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2017-07-28 21:31:59 +0300 |
commit | b8fe2d91c72e150f01ecd2d1db265f5b82fb3aab (patch) | |
tree | 3311fb0327592119e5c8343356567d0bf7aee3c7 /indra/newview/llpreviewscript.cpp | |
parent | 677e040a49db4327ba54ce32c18fedffcc121d96 (diff) | |
parent | 7e746e9221bf90466644999364b3c3cc16c0af98 (diff) |
Merged in lindenlab/viewer-lynx
Diffstat (limited to 'indra/newview/llpreviewscript.cpp')
-rw-r--r-- | indra/newview/llpreviewscript.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index 5cdc5dfd38..b7fea4e982 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -1683,6 +1683,7 @@ void LLPreviewLSL::saveIfNeeded(bool sync /*= true*/) mScriptEd->sync(); } + if (!gAgent.getRegion()) return; const LLInventoryItem *inv_item = getItem(); // save it out to asset server std::string url = gAgent.getRegion()->getCapability("UpdateScriptAgent"); |