summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2018-09-13 18:36:47 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2018-09-13 18:36:47 +0300
commitbb52cdf4f0104cb61c537041fc9574167fdf98eb (patch)
tree7c8102f562c820276bf49b05307d5a54d60e2d97 /indra/newview
parentceb336c5f340c260ac5c1923723dbc8204b98157 (diff)
SL-1307 EEP At startup viewer does not recognize what parcel you are on.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewerparcelmgr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewerparcelmgr.cpp b/indra/newview/llviewerparcelmgr.cpp
index d263e15a10..3ad78efd41 100644
--- a/indra/newview/llviewerparcelmgr.cpp
+++ b/indra/newview/llviewerparcelmgr.cpp
@@ -659,6 +659,10 @@ LLParcel * LLViewerParcelMgr::getAgentOrSelectedParcel() const
if (selection)
{
parcel = selection->getParcel();
+ if (parcel->getLocalID() == INVALID_PARCEL_ID)
+ {
+ parcel = NULL;
+ }
}
}