diff options
author | Dave Parks <davep@lindenlab.com> | 2010-04-14 12:12:03 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-04-14 12:12:03 -0500 |
commit | a7e1745bed2e8c22843b946700b4ae9c8fbf8ac9 (patch) | |
tree | 40d0b8bc9c5715f55e2870c5e2e4b534e01a774b /indra/newview/llviewerparcelmgr.cpp | |
parent | 6b72149cf7ad90c0036d9b037594b0a8e86dc483 (diff) | |
parent | 168ef83bcfae2a03c385a91a70e12a6fc773e3c5 (diff) |
Merge
Diffstat (limited to 'indra/newview/llviewerparcelmgr.cpp')
-rw-r--r-- | indra/newview/llviewerparcelmgr.cpp | 3 |
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(); |