summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewscript.cpp
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2017-07-28 21:31:59 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2017-07-28 21:31:59 +0300
commitb8fe2d91c72e150f01ecd2d1db265f5b82fb3aab (patch)
tree3311fb0327592119e5c8343356567d0bf7aee3c7 /indra/newview/llpreviewscript.cpp
parent677e040a49db4327ba54ce32c18fedffcc121d96 (diff)
parent7e746e9221bf90466644999364b3c3cc16c0af98 (diff)
Merged in lindenlab/viewer-lynx
Diffstat (limited to 'indra/newview/llpreviewscript.cpp')
-rw-r--r--indra/newview/llpreviewscript.cpp1
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");