Few nullchecks, and fixed broken logic in LLPanelAvatar::canClose()
This commit is contained in:
@@ -146,7 +146,10 @@ LLViewerObject *LLViewerObject::createObject(const LLUUID &id, const LLPCode pco
|
||||
}
|
||||
else
|
||||
{
|
||||
gAgentAvatarp->updateRegion(regionp);
|
||||
if (isAgentAvatarValid())
|
||||
{
|
||||
gAgentAvatarp->updateRegion(regionp);
|
||||
}
|
||||
}
|
||||
res = gAgentAvatarp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user