Added isAgentAvatarValid() helper function from v2
Nullchecks Flight-state tweaks
This commit is contained in:
@@ -369,11 +369,10 @@ void LLViewerObject::markDead()
|
||||
|
||||
if (flagAnimSource())
|
||||
{
|
||||
LLVOAvatar* avatarp = gAgent.getAvatarObject();
|
||||
if (avatarp && !avatarp->isDead())
|
||||
if (isAgentAvatarValid())
|
||||
{
|
||||
// stop motions associated with this object
|
||||
avatarp->stopMotionFromSource(mID);
|
||||
gAgent.getAvatarObject()->stopMotionFromSource(mID);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user