summaryrefslogtreecommitdiff
path: root/indra/newview/llworldmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llworldmap.cpp')
-rw-r--r--indra/newview/llworldmap.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llworldmap.cpp b/indra/newview/llworldmap.cpp
index 6c5118ed9d..1bd08c0430 100644
--- a/indra/newview/llworldmap.cpp
+++ b/indra/newview/llworldmap.cpp
@@ -343,6 +343,8 @@ void LLWorldMap::sendItemRequest(U32 type, U64 handle)
// public
void LLWorldMap::sendMapLayerRequest()
{
+ if (!gAgent.getRegion()) return;
+
LLSD body;
body["Flags"] = mCurrentMap;
std::string url = gAgent.getRegion()->getCapability(