Skip to content
Snippets Groups Projects
Commit 76a1b181 authored by Mnikolenko Productengine's avatar Mnikolenko Productengine
Browse files

SL-16970 FIXED Crash in LLToolPie::teleportToClickedLocation

parent 8116078c
No related branches found
No related tags found
No related merge requests found
......@@ -657,8 +657,7 @@ bool LLToolPie::teleportToClickedLocation()
LLViewerObject* objp = mHoverPick.getObject();
LLViewerObject* parentp = objp ? objp->getRootEdit() : NULL;
if (objp->getAvatar() == gAgentAvatarp
|| objp == gAgentAvatarp) // ex: nametag
if (objp && (objp->getAvatar() == gAgentAvatarp || objp == gAgentAvatarp)) // ex: nametag
{
// Don't teleport to self, teleporting to other avatars is fine
return false;
......
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