summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatarself.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-02-21 09:55:30 -0500
committerOz Linden <oz@lindenlab.com>2012-02-21 09:55:30 -0500
commit5f85e7a82458fff56aa79f7e7fe2986edc069ca3 (patch)
tree01c9c6b6f6cb06b828d4e1d539b455a6a7ac7e9c /indra/newview/llvoavatarself.cpp
parent1074219c8a44cbf6f3b1b0a68dd0ca8c656465fa (diff)
parent52782548c83dc0ca0fc8352e1a3ad68784116a91 (diff)
merge changes for SH-2973
Diffstat (limited to 'indra/newview/llvoavatarself.cpp')
-rw-r--r--indra/newview/llvoavatarself.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp
index f1df67494f..e525d6bad0 100644
--- a/indra/newview/llvoavatarself.cpp
+++ b/indra/newview/llvoavatarself.cpp
@@ -66,10 +66,11 @@
#include <boost/lexical_cast.hpp>
-LLVOAvatarSelf *gAgentAvatarp = NULL;
+LLPointer<LLVOAvatarSelf> gAgentAvatarp = NULL;
+
BOOL isAgentAvatarValid()
{
- return (gAgentAvatarp &&
+ return (gAgentAvatarp.notNull() &&
(gAgentAvatarp->getRegion() != NULL) &&
(!gAgentAvatarp->isDead()));
}