summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-03-31 11:05:23 -0400
committerLoren Shih <seraph@lindenlab.com>2010-03-31 11:05:23 -0400
commitb3bbc9d9ac2f35d38e6fa9a7df00cec1f2e7ee3e (patch)
tree78df1d4658d319e11dc40a72900e9caebdc30a8c
parentd99a7d2f1d5d839131919d17173f5197c04083a6 (diff)
Fix for crash in process_avatar_movement.
gAgentAvatarp pointer was being checked for null instead of the local avatarp.
-rw-r--r--indra/newview/llviewermessage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 6dc0983f10..5f8c03b545 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -4031,7 +4031,7 @@ void process_avatar_animation(LLMessageSystem *mesgsys, void **user_data)
//clear animation flags
avatarp = (LLVOAvatar *)gObjectList.findObject(uuid);
- if (!isAgentAvatarValid())
+ if (!avatarp)
{
// no agent by this ID...error?
LL_WARNS("Messaging") << "Received animation state for unknown avatar" << uuid << LL_ENDL;