Skip to content
Snippets Groups Projects
Commit 21e409d8 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix crash in AOEngine::foreignAnimations

parent 75d4afb1
No related branches found
No related tags found
No related merge requests found
...@@ -179,10 +179,10 @@ bool ALAOEngine::foreignAnimations(const LLUUID& seat) ...@@ -179,10 +179,10 @@ bool ALAOEngine::foreignAnimations(const LLUUID& seat)
} }
// find the source object where the animation came from // find the source object where the animation came from
LLViewerObject* source=gObjectList.findObject(animation_source.first); LLViewerObject* source = gObjectList.findObject(animation_source.first);
// proceed if it's not an attachment // proceed if it's not an attachment
if(!source->isAttachment()) if(source && !source->isAttachment())
{ {
// get the source's root prim // get the source's root prim
LLViewerObject* sourceRoot=dynamic_cast<LLViewerObject*>(source->getRoot()); LLViewerObject* sourceRoot=dynamic_cast<LLViewerObject*>(source->getRoot());
......
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