summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerparcelmgr.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-04-13 10:19:05 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-04-13 10:19:05 +0100
commitd071cff43fa9529ded274b2aa0c929efbb6f6c91 (patch)
treebf46a0be9f5f1a92ce26a5aa50e6e867cd0e656f /indra/newview/llviewerparcelmgr.cpp
parent95343d8085d98cf0927747298cd4af7a9ea90766 (diff)
parent4f20b91acdddc06b7e033afa42e19f993f7efb30 (diff)
PE merge from PE's viewer-trunk
Diffstat (limited to 'indra/newview/llviewerparcelmgr.cpp')
-rw-r--r--indra/newview/llviewerparcelmgr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llviewerparcelmgr.cpp b/indra/newview/llviewerparcelmgr.cpp
index 1f6bbcbae8..a591cc1e14 100644
--- a/indra/newview/llviewerparcelmgr.cpp
+++ b/indra/newview/llviewerparcelmgr.cpp
@@ -2185,7 +2185,8 @@ bool LLViewerParcelMgr::canAgentBuyParcel(LLParcel* parcel, bool forGroup) const
return true; // change this if want to make it gods only
}
- LLViewerRegion* regionp = LLViewerParcelMgr::getInstance()->getSelectionRegion();
+ LLVector3 parcel_coord = parcel->getCenterpoint();
+ LLViewerRegion* regionp = LLWorld::getInstance()->getRegionFromPosAgent(parcel_coord);
if (regionp)
{
U8 sim_access = regionp->getSimAccess();