summaryrefslogtreecommitdiff
path: root/indra/newview/lltoolpie.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2022-03-03 16:40:00 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2022-03-03 16:40:00 +0200
commit76a1b181e6fd6ddaf89b53eab4de80477e11fa3d (patch)
tree17bf336868e3d72b0c5c497849b55e6f014e9676 /indra/newview/lltoolpie.cpp
parent8116078c7273bc0f52424ede96563a4418155508 (diff)
SL-16970 FIXED Crash in LLToolPie::teleportToClickedLocation
Diffstat (limited to 'indra/newview/lltoolpie.cpp')
-rw-r--r--indra/newview/lltoolpie.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp
index 5e86c290cd..43deac60d9 100644
--- a/indra/newview/lltoolpie.cpp
+++ b/indra/newview/lltoolpie.cpp
@@ -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;