Skip to content
Snippets Groups Projects
Commit 510e1b9e authored by Ansariel's avatar Ansariel
Browse files

Possible crash fix in LLAgent::doTeleportViaLocation

parent 1282cd91
No related branches found
No related tags found
No related merge requests found
......@@ -4045,6 +4045,12 @@ void LLAgent::teleportViaLocation(const LLVector3d& pos_global)
void LLAgent::doTeleportViaLocation(const LLVector3d& pos_global)
{
LLViewerRegion* regionp = getRegion();
if (!regionp)
{
return;
}
U64 handle = to_region_handle(pos_global);
LLSimInfo* info = LLWorldMap::getInstance()->simInfoFromHandle(handle);
if(regionp && info)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment